-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker setup for a CivBuddy build environment with NodeJS v8
- Loading branch information
Showing
5 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/resources/i18n/*.ftl linguist-language=INI | ||
|
||
/docker/.vimrc text eol=lf |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
*.iml | ||
*.ipr | ||
*.iws | ||
/docker/.ssh/ |
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 @@ | ||
set bg=dark | ||
syn on |
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,14 @@ | ||
FROM node:8-buster | ||
|
||
COPY .vimrc /root | ||
COPY .ssh /root/.ssh/ | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y vim man && \ | ||
chmod 644 /root/.vimrc && \ | ||
echo 'alias ll="ls -lF --color=auto"' >> /root/.bashrc && \ | ||
chmod 700 /root/.ssh && \ | ||
chmod 644 /root/.ssh/* && \ | ||
chmod 600 /root/.ssh/id_ed25519 | ||
|
||
WORKDIR /build |
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,17 @@ | ||
# docker | ||
|
||
This folder contains some supplementary files for setting up a Docker environment on the local machine for building | ||
CivBuddy. It is not part of the CivBuddy app. | ||
|
||
Prerequisites: | ||
|
||
1. [Add SSH keys to GitHub](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) | ||
2. Provide them in /docker/.ssh/ so that they can be included with the container | ||
|
||
In this folder: | ||
|
||
- `docker build -t civbuddy-node:8 --progress plain .` | ||
- `docker run --rm -it -vC:\path\to\civbuddy:/build --entrypoint=/bin/bash civbuddy-node:8` | ||
- `cd /build` | ||
- `npm install` | ||
- `npm run build` (or whatever other command) |