Skip to content

Commit

Permalink
Try to run the container as current user
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Jul 27, 2023
1 parent a586549 commit 4ae2b72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions docker-compose.n8n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
com.ddev.approot: $DDEV_APPROOT
com.ddev.app-url: $DDEV_URL
restart: "no"
user: '$DDEV_UID:$DDEV_GID'
expose:
- "5678"
volumes:
Expand Down
3 changes: 0 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ health_checks() {
teardown() {
set -eu -o pipefail
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
chmod 777 ${TESTDIR}/.ddev/n8n/data
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1
[ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR}
}
Expand All @@ -28,7 +27,6 @@ teardown() {
cd ${TESTDIR}
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
chmod 777 ${TESTDIR}/.ddev/n8n/data
if ! ddev restart; then
ddev logs -s n8n
fi
Expand All @@ -40,7 +38,6 @@ teardown() {
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get netz98/ddev-n8n with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get netz98/ddev-n8n
chmod 777 ${TESTDIR}/.ddev/n8n/data
if ! ddev restart >/dev/null; then
ddev logs -s n8n
fi
Expand Down

0 comments on commit 4ae2b72

Please sign in to comment.