-
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.
added support for docker containerizing
- Loading branch information
Showing
6 changed files
with
192 additions
and
9 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,8 @@ | ||
node_modules | ||
.vscode | ||
*.log | ||
.npmrc | ||
.jshintrc | ||
.eslintrc | ||
.gitignore | ||
.gitattributes |
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,26 @@ | ||
# Base image for nodejs (LTS) | ||
FROM node:lts | ||
|
||
# Set the shell to bash | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
||
# Copy in the src files | ||
COPY . . | ||
|
||
# Replace the config file with the docker template file (prevents leaking your keys to the docker image, you're welcome) | ||
RUN mv config/config-docker-template.json config/config.json | ||
|
||
# Install the production dependencies | ||
RUN npm ci --only=production | ||
|
||
# Expose port 3000 for API | ||
EXPOSE 3000 | ||
|
||
# Set the node environment to production | ||
ENV NODE_ENV production | ||
|
||
# Define the app run command | ||
CMD [ "npm", "start" ] |
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
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,140 @@ | ||
{ | ||
"trelloBoards": [ | ||
{ | ||
"frontendEventSelection": "Build Season", | ||
"trelloId": "" | ||
}, | ||
{ | ||
"frontendEventSelection": "Duluth - Northern Lights", | ||
"trelloId": "" | ||
}, | ||
{ | ||
"frontendEventSelection": "Duluth - Lake Superior", | ||
"trelloId": "" | ||
}, | ||
{ | ||
"frontendEventSelection": "10,000 Lakes", | ||
"trelloId": "" | ||
}, | ||
{ | ||
"frontendEventSelection": "Granite City", | ||
"trelloId": "" | ||
}, | ||
{ | ||
"frontendEventSelection": "Great Northern", | ||
"trelloId": "" | ||
} | ||
], | ||
"trelloBoardLabels": [ | ||
{ | ||
"name": "CANBus fault", | ||
"color": "lime" | ||
}, | ||
{ | ||
"name": "Code - C++", | ||
"color": "blue" | ||
}, | ||
{ | ||
"name": "Code - General", | ||
"color": "blue" | ||
}, | ||
{ | ||
"name": "Code - Java", | ||
"color": "blue" | ||
}, | ||
{ | ||
"name": "Code - LabView", | ||
"color": "blue" | ||
}, | ||
{ | ||
"name": "Code - Python", | ||
"color": "blue" | ||
}, | ||
{ | ||
"name": "Communication - Limelight", | ||
"color": "purple" | ||
}, | ||
{ | ||
"name": "Configuration", | ||
"color": "sky" | ||
}, | ||
{ | ||
"name": "Driver Station", | ||
"color": "pink" | ||
}, | ||
{ | ||
"name": "Electronic - Brownout", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "Electronic - Communication", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "Electronic - General", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "Electronic - Pneumatics", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "Electronic - Wiring", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "Electronic - incompatible components", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "Field - Brownouts", | ||
"color": "black" | ||
}, | ||
{ | ||
"name": "Field - Communication", | ||
"color": "black" | ||
}, | ||
{ | ||
"name": "Field - General", | ||
"color": "black" | ||
}, | ||
{ | ||
"name": "Field - roboRIO reboot", | ||
"color": "black" | ||
}, | ||
{ | ||
"name": "Firmware update", | ||
"color": "orange" | ||
}, | ||
{ | ||
"name": "Practice Field", | ||
"color": "green" | ||
}, | ||
{ | ||
"name": "Raspberry Pi", | ||
"color": "yellow" | ||
}, | ||
{ | ||
"name": "Other or not sure", | ||
"color": "black" | ||
}, | ||
{ | ||
"name": "Critical Priority", | ||
"color": "red" | ||
}, | ||
{ | ||
"name": "High Priority", | ||
"color": "orange" | ||
}, | ||
{ | ||
"name": "Medium Priority", | ||
"color": "yellow" | ||
}, | ||
{ | ||
"name": "Low Priority", | ||
"color": "green" | ||
} | ||
], | ||
"trelloAppKey": "", | ||
"trelloUserToken": "" | ||
} |
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
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