Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
William Moody
committed
Mar 21, 2021
1 parent
536ed90
commit a53f33c
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# start mongodb | ||
mongod --fork -f /etc/mongod.conf | ||
|
||
# seed mongodb | ||
mongo /app/.docker/init.js | ||
|
||
# start the node app | ||
npm start |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/python3 | ||
import requests | ||
import sys | ||
|
||
if len(sys.argv) != 3: | ||
print("usage: %s TARGET USER" % sys.argv[0]) | ||
sys.exit(-1) | ||
|
||
target = sys.argv[1] | ||
user = sys.argv[2] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
FROM alpine:latest | ||
FROM debian:latest | ||
|
||
# copy files to /app | ||
WORKDIR /app | ||
COPY . /app | ||
|
||
# install necessary packages | ||
RUN apt-get update | ||
RUN apt-get install -y nodejs npm wget gnupg | ||
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - | ||
RUN echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list | ||
RUN apt-get update | ||
RUN apt-get install -y mongodb-org | ||
|
||
# update npm | ||
RUN npm install -g npm@latest | ||
|
||
# install node modules | ||
RUN npm install | ||
|
||
# start the app | ||
EXPOSE 3000 | ||
CMD ["/bin/sh",".docker/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters