Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ISRIC
wsm.rest
Commits
52f344aa
Commit
52f344aa
authored
Jan 10, 2018
by
Luís de Sousa
Browse files
Renamed secret.py to secret.py.dist and left reference in Dockerfile
parent
8ce4137d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
52f344aa
...
...
@@ -10,12 +10,16 @@ RUN pip install -r /tmp/requirements.txt
# Expose port 80
EXPOSE
80
################### Usage #####################
# Build it
# docker build -t ldesousa/wsm.rest .
# Run command
# docker run -dit -v /var/www/wsm.rest:/var/www/wsm.rest -v /data/monoliths:/data/monoliths --name wsm.rest -p 8081:80 ldesousa/wsm.rest
# Set the correct database connection in common/secret.py
# Attach to the container and run the startup script
# docker attach wsm.rest
# sh /var/www/wsm.rest/configs/startup.sh
...
...
common/secret.py
→
common/secret.py
.dist
View file @
52f344aa
"""Password of database"""
"""This is just an example, change to the correct values and rename the file to
secret.py"""
DB={"host":"85.214.241.121","database":"isric", "user":"isis", "password":"@#%951GHKaef"}
\ 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