Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
go
Commits
a008e3e3
Commit
a008e3e3
authored
Dec 03, 2016
by
mdsecurity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+0
-3
README.md
README.md
+1
-0
startup.sh
startup.sh
+2
-0
No files found.
Dockerfile
View file @
a008e3e3
...
...
@@ -16,6 +16,3 @@ RUN apt-get install
RUN
pip
install
-r
requirements.txt
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:
`$ 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.
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
echo
"waiting for database to start..."
sleep
1
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
)
python go/manage.py flush
--no-input
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