Skip to content

Commit

Permalink
Changes from docker host required to build/run with docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
m0r13 committed Feb 21, 2017
1 parent 253ac17 commit 74763ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
@@ -1,13 +1,15 @@
FROM node:4-onbuild
FROM node:latest
# MONGOINSTALL
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
# Update apt-get sources AND install MongoDB
RUN apt-get update && apt-get install -y mongodb-org-server && apt-get install -y mongodb-org-mongos && apt-get install -y mongodb-org-shell
# Create the MongoDB data directory
RUN mkdir -p /data/db
RUN chmod +x dockerstart.sh
CMD ./dockerstart.sh
COPY . /var/gryphon/
RUN npm install -g node-gyp grunt-cli
RUN cd /var/gryphon && npm install
RUN cd /var/gryphon && grunt config
RUN cd /var/gryphon && grunt
CMD service mongod start && node /var/gryphon/bin/www

EXPOSE 3000
EXPOSE 27017
EXPOSE 27017
4 changes: 2 additions & 2 deletions client_config.js.example
Expand Up @@ -32,6 +32,6 @@ var CONFIGURATION = {
* be enough, as its generated out of the servers host then.
* Example Value: 'localhost:3000/api', window.location.origin + '/api/
*/
API_HOST: window.location.origin + '/api/',
API_HOST: window.location.origin + window.location.pathname + 'api/',
};
module.exports = CONFIGURATION
module.exports = CONFIGURATION
7 changes: 0 additions & 7 deletions dockerstart.sh

This file was deleted.

0 comments on commit 74763ee

Please sign in to comment.