Commit 0689ca11 authored by mdsecurity's avatar mdsecurity

Added env variables for settings in the Dockerfile

parent 022cdfef
Pipeline #437 passed with stage
in 7 minutes and 15 seconds
......@@ -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=""
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment