Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
first docker version with fig
Browse files Browse the repository at this point in the history
  • Loading branch information
luebken committed Jun 18, 2014
1 parent 9da3bc8 commit a68b588
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Note "> /dev/null" workaround for fig-bug https://github.com/orchardup/fig/issues/239
#
FROM dockerfile/nodejs

MAINTAINER Matthias Luebken, [email protected]

WORKDIR /home/mean

# Install Mean.JS Prerequisites
RUN npm install -g grunt-cli > /dev/null
RUN npm install -g bower > /dev/null

# Install Mean.JS packages
ADD package.json /home/mean/package.json
RUN npm install > /dev/null

# Make everything available for start
ADD . /home/mean

# currently only works for development
ENV NODE_ENV development

EXPOSE 3000
CMD ["grunt"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ Your application should run on the 3000 port so in your browser just go to [http
That's it! your application should be running by now, to proceed with your development check the other sections in this documentation.
If you encounter any problem try the Troubleshooting section.

## Development and deployment With Docker

* Install [Docker](http://www.docker.com/)
* Install [Fig](https://github.com/orchardup/fig)

* For local development and testing:
```
$ fig up
```


## Getting Started With MEAN.JS
You have your application running but there are a lot of stuff to understand, we recommend you'll go over the [Offical Documentation](http://meanjs.org/docs.html).
In the docs we'll try to explain both general concepts of MEAN components and give you some guidelines to help you improve your development procees. We tried covering as many aspects as possible, and will keep update it by your request, you can also help us develop the documentation better by checking out the *gh-pages* branch of this repository.
Expand Down
4 changes: 3 additions & 1 deletion config/env/development.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
'use strict';

var DB_HOST = process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost';

module.exports = {
db: 'mongodb://localhost/mean-dev',
db: 'mongodb://' + DB_HOST + '/mean-dev',
app: {
title: 'MEAN.JS - Development Environment'
},
Expand Down
10 changes: 10 additions & 0 deletions fig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
web:
build: .
links:
- db
ports:
- "3000:3000"
db:
image: mongo
ports:
- "27017:27017"

0 comments on commit a68b588

Please sign in to comment.