Skip to content

Commit

Permalink
startup refactor - check-installations run at container startup
Browse files Browse the repository at this point in the history
  • Loading branch information
nadinedelia committed Nov 7, 2023
1 parent 4d2ba1e commit d3f046c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ RUN npm install -g cors axios express create-react-app
# Install Python requirements
RUN pip3 install Flask pymongo gunicorn python-dotenv Flask-PyMongo Flask-CORS

# Install mongosh
RUN wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add - \
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/debian bullseye/mongodb-org/7.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list \
&& sudo apt-get update \
&& sudo apt-get install -y mongodb-mongosh mongodb-org-server \
&& sudo apt-get clean

# Clean up
RUN rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
}
},

"postCreateCommand": "npm install"
"postCreateCommand": "npm install && bash ./.devcontainer/check-installation.sh"

}
5 changes: 0 additions & 5 deletions .devcontainer/install.sh

This file was deleted.

0 comments on commit d3f046c

Please sign in to comment.