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
a008e3e3
Commit
a008e3e3
authored
Dec 03, 2016
by
mdsecurity
Browse files
moving the mv and cp command to the startup file
parent
349e6f5b
Pipeline
#575
passed with stage
in 7 minutes and 8 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
a008e3e3
...
@@ -16,6 +16,3 @@ RUN apt-get install
...
@@ -16,6 +16,3 @@ RUN apt-get install
RUN
pip
install
-r
requirements.txt
RUN
pip
install
-r
requirements.txt
ADD
. /go/
ADD
. /go/
RUN
mv
go/settings/settings.docker.py.template go/settings/settings.py
RUN
mv
go/settings/secret.docker.py.template go/settings/secret.py
README.md
View file @
a008e3e3
...
@@ -63,6 +63,7 @@ Next go to the directory with the docker-compose file in it and run:
...
@@ -63,6 +63,7 @@ Next go to the directory with the docker-compose file in it and run:
`$ docker-compose up`
`$ docker-compose up`
SOMETIMES if this branch is updated you might have to
You should see that the server is running by going to http://localhost:8000 in your browser.
You should see that the server is running by going to http://localhost:8000 in your browser.
Any changes you make to your local file system will be mirrored in the server.
Any changes you make to your local file system will be mirrored in the server.
...
...
startup.sh
View file @
a008e3e3
...
@@ -4,6 +4,8 @@ until nc -z db 3306; do
...
@@ -4,6 +4,8 @@ until nc -z db 3306; do
echo
"waiting for database to start..."
echo
"waiting for database to start..."
sleep
1
sleep
1
done
done
cp
go/settings/settings.docker.py.template go/settings/settings.py
cp
go/settings/secret.docker.py.template go/settings/secret.py
export
SECRET_KEY
=
$(
dd
if
=
/dev/urandom
count
=
100 |
tr
-dc
"A-Za-z0-9"
|
fold
-w
60 |
head
-n1
2>/dev/null
)
export
SECRET_KEY
=
$(
dd
if
=
/dev/urandom
count
=
100 |
tr
-dc
"A-Za-z0-9"
|
fold
-w
60 |
head
-n1
2>/dev/null
)
python go/manage.py flush
--no-input
python go/manage.py flush
--no-input
python go/manage.py makemigrations
python go/manage.py makemigrations
...
...
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