Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
chore(development): Add a docker development container
Browse files Browse the repository at this point in the history
A docker compose file and container are startable under /scripts/docker
  • Loading branch information
kanej committed Jun 21, 2016
1 parent be8bf71 commit 4d77c86
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions DevelopmentDockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:6.1.0

RUN apt-get update -qq && apt-get install -y rsync

RUN mkdir /antaeus
WORKDIR /antaeus
VOLUME /antaeus

EXPOSE 3000

CMD node src/cli/bin.js start --port 3000 --dnsConfig localDnsConfig.json --ipfsHost ipfs --ipfsPort 5001
16 changes: 16 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '2'
services:
web:
build:
context: .
dockerfile: DevelopmentDockerfile
volumes:
- .:/antaeus
ports:
- "80:3000"
depends_on:
- ipfs
environment:
- NODE_ENV=production
ipfs:
image: jbenet/go-ipfs
3 changes: 3 additions & 0 deletions script/docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker-machine start default
eval $(docker-machine env default)
docker-compose -f docker-compose.dev.yml up

0 comments on commit 4d77c86

Please sign in to comment.