-
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.
Merge pull request #28 from 540co/develop
Continuous Deployment Updates
- Loading branch information
Showing
8 changed files
with
58 additions
and
8 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
**/.tmp | ||
**/bower_components | ||
**/*.log | ||
**/dist |
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,34 @@ | ||
# To build: | ||
# 1. Install docker (http://docker.io) | ||
# 2. Checkout source: [email protected]:540co/ads-bpa.git | ||
# 3. Build container: docker build . | ||
|
||
FROM node:0.12.4 | ||
MAINTAINER 540 Co LLC <[email protected]> | ||
|
||
# Environment Variables | ||
ENV SRC_PATH /src/dre | ||
ENV CLIENT_PATH $SRC_PATH/client | ||
ENV SERVER_PATH $SRC_PATH/server | ||
|
||
# App | ||
ADD . $SRC_PATH | ||
|
||
# Install dependencies | ||
WORKDIR $SRC_PATH | ||
RUN npm install -g bower grunt-cli mocha | ||
|
||
# Install client dependencies | ||
WORKDIR $CLIENT_PATH | ||
RUN npm install; bower install --allow-root; grunt build | ||
|
||
# Install server dependencies | ||
WORKDIR $SERVER_PATH | ||
RUN npm install | ||
|
||
# Expose port 3000 to host | ||
EXPOSE 3000 | ||
|
||
# Start server | ||
WORKDIR $SERVER_PATH | ||
CMD ["npm", "start"] |
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
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,8 @@ | ||
web: | ||
image: 540co/dre:latest | ||
ports: | ||
- "3000:3000" | ||
links: | ||
- mongo | ||
mongo: | ||
image: mongo:3.0.4 |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var config = {} | ||
|
||
config.mongo = "mongodb://localhost:27017/"; | ||
config.mongo = "mongodb://mongo:27017/"; | ||
|
||
module.exports = config; |