-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker support for development via docker-compose. Closes #1078
This will allow developers to have a running DemocracyOS environment, with build-watch-serve functionalities; just run `docker-compose up app`.
- Loading branch information
Showing
8 changed files
with
58 additions
and
23 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
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
*.pid | ||
*.seed | ||
*.sublime-* | ||
.env | ||
.idea/* | ||
.npmrc | ||
.tmp | ||
|
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: ./docker/development.Dockerfile | ||
env_file: docker/.env | ||
links: | ||
- mongo | ||
ports: | ||
- "3000:3000" | ||
# mount source volume, but | ||
# don't overwrite `node_modules` or mirror dir from container | ||
volumes: | ||
- ${PWD}:/usr/src | ||
- /usr/src/node_modules | ||
tty: true | ||
|
||
mongo: | ||
image: mongo | ||
# Optionally mount external data directory | ||
# volumes: | ||
# - path-to-your-data-dir:/data/db |
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 @@ | ||
# Required for running under docker compose | ||
MONGO_URL=mongodb://mongo/DemocracyOS-dev |
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,16 @@ | ||
FROM node:argon | ||
MAINTAINER Guido Vilariño <guido@democracyos.org> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libkrb5-dev && \ | ||
npm config set python python2.7 | ||
|
||
COPY package.json /usr/src/ | ||
|
||
WORKDIR /usr/src | ||
|
||
RUN npm install --quiet --unsafe-perm | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["./node_modules/.bin/gulp", "bws"] |
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