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
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
52f344aa
...
@@ -10,12 +10,16 @@ RUN pip install -r /tmp/requirements.txt
...
@@ -10,12 +10,16 @@ RUN pip install -r /tmp/requirements.txt
# Expose port 80
# Expose port 80
EXPOSE
80
EXPOSE
80
################### Usage #####################
# Build it
# Build it
# docker build -t ldesousa/wsm.rest .
# docker build -t ldesousa/wsm.rest .
# Run command
# 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
# 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
# Attach to the container and run the startup script
# docker attach wsm.rest
# docker attach wsm.rest
# sh /var/www/wsm.rest/configs/startup.sh
# sh /var/www/wsm.rest/configs/startup.sh
...
...
common/secret.py
→
common/secret.py
.dist
View file @
52f344aa
"""Password of database"""
"""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"}
DB={"host":"85.214.241.121","database":"isric", "user":"isis", "password":"@#%951GHKaef"}
\ No newline at end of file
Write
Preview
Supports
Markdown
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