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 66b112f commit 627bffa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
10 changes: 3 additions & 7 deletions render-ws-with-mongo-db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key
echo "mongodb-org-tools hold" | sudo dpkg --set-selections && \
sudo rm /bin/systemctl

# start up mongodb
RUN sudo mongodb /usr/bin/mongod -f /etc/mongod.conf \

# start up jetty
RUN sudo deploy/jetty_base/jetty_wrapper.sh run

# expose the render port
EXPOSE 8080
EXPOSE 8080

CMD ./render-ws-with-mongodb/startup_mongodb_and_jetty.sh
20 changes: 20 additions & 0 deletions render-ws-with-mongo-db/startup_mongodb_and_jetty.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# ------------------------------------------------------------------------------------------------------
# From https://github.com/saalfeldlab/render/blob/master/docs/src/site/markdown/render-ws.md

echo """
Install 7. 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

0 comments on commit 627bffa

Please sign in to comment.