This repository has been archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
c68ec41
commit f33332e
Showing
3 changed files
with
22 additions
and
4 deletions.
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,2 @@ | ||
node_modules | ||
npm-debug.log |
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,6 @@ | ||
docker-build: | ||
command: docker build -t docker-worker . | ||
description: Build the docker container | ||
docker-build-for-test: | ||
command: docker build --build-arg configPath=../stampede-server-test/config -t docker-worker . | ||
description: Build the docker container and supply config from server tests |
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,8 +1,18 @@ | ||
ARG config | ||
# Dockerfile | ||
|
||
# arguments | ||
ARG configPath | ||
# node image | ||
FROM node:8 | ||
WORKDIR /usr/src/app | ||
# working folder | ||
WORKDIR /var/stampede | ||
# install app dependencies | ||
COPY package*.json ./ | ||
RUN npm install | ||
# copy the app into the container | ||
COPY . . | ||
COPY $config /user/src/app/.stampederc | ||
CMD [ "npm", "start" ] | ||
COPY $configPath ./config | ||
# setup the environment variables | ||
ENV stampede_stampedeConfigPath /var/stampede/config | ||
# run the server | ||
CMD ["node", "bin/stampede-worker.js"] |