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
022cdfef
Commit
022cdfef
authored
Nov 05, 2016
by
mdsecurity
Browse files
fixed docker-compose
parent
e45e689f
Pipeline
#429
passed with stage
in 7 minutes and 9 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
022cdfef
...
...
@@ -12,4 +12,4 @@ RUN apt-get install libldap2-dev -y
RUN
apt-get
install
RUN
pip
install
-r
requirements.txt
ADD
. /go/
CMD
./startup.sh
docker-compose.yml
View file @
022cdfef
...
...
@@ -4,7 +4,7 @@ services:
build
:
.
ports
:
-
"
8000:8000"
command
:
python go/manage.py runserver 0.0.0.0:8000
command
:
/bin/bash ./startup.sh
#
python go/manage.py runserver 0.0.0.0:8000
volumes
:
-
.:/go
depends_on
:
...
...
startup.sh
View file @
022cdfef
python go/manage.py runserver 0.0.0.0:8000
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
# #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 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