Skip to content

Commit

Permalink
first draft of render-ws-with-mongodb dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
trautmane committed Jan 27, 2025
1 parent 6bccd22 commit cd2058e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
6 changes: 3 additions & 3 deletions render-ws-with-mongo-db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# cd ${RENDER_REPO_ROOT_DIR}
# docker build --file render-ws-with-mongo-db/Dockerfile --no-cache --tag janelia-render-ws-with-mongo-db:0.0.2 .
#
# To run a container:
# docker run --tty --publish 8080:8080 --rm janelia-render-ws-with-mongo-db:0.0.2
# To run a container in detached mode:
# docker run --publish 8080:8080 --detach --rm janelia-render-ws-with-mongo-db:0.0.2
#
# To launch interactive bash shell within an example container:
# To launch interactive bash shell within a container:
# docker run --interactive --tty --publish 8080:8080 --entrypoint /bin/bash --rm janelia-render-ws-with-mongo-db:0.0.2
# ======================================================================================

Expand Down
16 changes: 3 additions & 13 deletions render-ws-with-mongo-db/startup_mongodb_and_jetty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,8 @@
# ------------------------------------------------------------------------------------------------------
# From https://github.com/saalfeldlab/render/blob/master/docs/src/site/markdown/render-ws.md

echo """
Install 7. Start MongoDB
"""
# start mongodb
sudo -u mongodb /usr/bin/mongod -f /etc/mongod.conf &

echo """
Install 8. Start Jetty
"""

echo """
Hack: Passing run instead of start to jetty.sh to work-around startup failure.
See https://github.com/eclipse/jetty.project/issues/7008 and
https://github.com/eclipse/jetty.project/issues/7095
"""
deploy/jetty_base/jetty_wrapper.sh run
# start jetty
deploy/jetty_base/jetty_wrapper.sh start

0 comments on commit cd2058e

Please sign in to comment.