-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non root user in docker entry #162
base: master
Are you sure you want to change the base?
Changes from 1 commit
73a5fbc
6b80109
c0433bb
a901c25
c6846a2
66fcad6
a412709
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash -ex | ||
|
||
if [[ ! -d "$DATA_DIR" ]]; then | ||
exit 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this ever happen? I mean sure, if you don't mount the directory, but we do mount it. I think you can remove this check, let it crash later naturally when doing |
||
fi | ||
|
||
./manage.py initialize | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This command only runs |
||
|
||
chown -R $UID:$GID $DATA_DIR | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this service, since it only has one file on it, it's OK to always run a |
||
|
||
exec gosu $USER_NAME "$@" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/bash -ex | ||
|
||
./manage.py initialize | ||
# exec ./manage.py runserver 0.0.0.0:8000 | ||
exec waitress-serve --port 8000 liquidcore.site.wsgi:application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call this arg
$USER_NAME
too so it has the same name as the env below