Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
0689ca11
Commit
0689ca11
authored
Nov 09, 2016
by
mdsecurity
Browse files
Added env variables for settings in the Dockerfile
parent
022cdfef
Pipeline
#437
passed with stage
in 7 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
0689ca11
...
...
@@ -12,4 +12,18 @@ RUN apt-get install libldap2-dev -y
RUN
apt-get
install
RUN
pip
install
-r
requirements.txt
ADD
. /go/
ENV
host="*" \
email_domain="@masonlive.gmu.edu" \
cas_url="https://nanderson.me/cas/" \
superuser="dhaynes3" \
SECRET_KEY="much-secret" \
DB_NAME="go" \
DB_USER="go" \
DB_PASSWORD="go" \
DB_HOST="" \
PIWIK_SITE_ID="" \
PIWIK_URL="" \
EMAIL_HOST="" \
EMAIL_PORT="" \
EMAIL_HOST_USER="" \
EMAIL_HOST_PASSWORD=""
startup.sh
View file @
0689ca11
...
...
@@ -2,6 +2,5 @@ python go/manage.py flush --no-input
python go/manage.py makemigrations
python go/manage.py makemigrations go
python go/manage.py migrate
python go/manage.py createsuperuser
--noinput
--username
=
dhaynes3
--email
=
dhaynes3@masonlive.gmu.edu
# #echo "from django.contrib.auth.models import User; User.objects.create_superuser('dhaynes3', 'admin@example.com', 'pass')" | python manage.py shell
python go/manage.py createsuperuser
--noinput
--username
=
$superuser
--email
=
$superuser$email_domain
python go/manage.py runserver 0.0.0.0:8000
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment