Commit ad33f2d9 authored by Andrew Newdigate's avatar Andrew Newdigate

Docker app WIP

parent 8aa672ba
FROM node:0.10.38
RUN npm install -g npm
RUN npm install -g nodemon
RUN npm install -g node-gyp
RUN mkdir /src
WORKDIR /src
COPY package.json package.json
COPY npm-shrinkwrap.json npm-shrinkwrap.json
COPY modules/ modules/
COPY shared/ shared/
RUN sed 's#http://beta-internal:4873/#http://10.0.0.140:4873/#g' -ibak npm-shrinkwrap.json
RUN npm install --verbose --registry http://10.0.0.140:4873/
COPY . .
# Horrible hack for now
CMD ["nodemon", "web"]
......@@ -100,3 +100,24 @@ elasticsearchsetup:
volumes:
- ./scripts:/scripts
entrypoint: [ "/scripts/elasticsearch/setup-docker-elasticsearch.sh" ]
# For when we want to run the app in docker in future
# app:
# build: .
# links:
# - mongo1
# - mongo2
# - mongo3
# - redis1
# - redis2
# - sentinel1
# - elasticsearch:gitter-es-dev
# - neo4j:gitter-neo4j-dev
# extra_hosts:
# - "gitter-redis-dev:192.168.99.100"
# - "gitter-mongo-dev:192.168.99.100"
# ports:
# - "5000:5000"
# environment:
# DEBUG: "gitter:*"
# entrypoint: [ "node", "web" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment