Skip to content

Commit 5791c81

Browse files
committed
Add FAQ and update versions
1 parent f94934f commit 5791c81

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

README.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ the complete list of versions used in this tutorial:
1919
* OSX 10.10.5 as the development platform
2020
* Ubuntu 15.04 as Docker host system
2121
* Debian Jessie 7 with latest updates as Docker container system
22-
* Docker 1.8.1
22+
* Docker 1.9.1
2323
* Docker Registry 2
24-
* Docker Machine 0.4.1
25-
* Docker Compose 1.4.0
26-
* VirtualBox 5.0.2
24+
* Docker Machine 0.5.1
25+
* Docker Compose 1.5.1
26+
* VirtualBox 5.0.10
27+
* Vagrant 1.7.4
2728
* Meteor 1.1.0.3
28-
* NGinx 1.9.4-1
29-
* NodeJS 0.10.40
29+
* NGinx 1.8.0-1
30+
* NodeJS 0.10.41
31+
* NPM 3.3.12
3032
* Mongo 3.0.6 - WiredTiger
3133

3234
![Software architecture](https://raw.githubusercontent.com/PEM--/devops-tuts/master/doc/software_architecture.png)
@@ -462,7 +464,7 @@ docker-compose up -d db
462464
And once it's running, initialize a single instance ReplicaSet for making
463465
Oplog tailing available:
464466
```sh
465-
docker-compose run db mongo db:27017/admin --quiet --eval "rs.initiate(); rs.conf();"
467+
docker-compose run --rm db mongo db:27017/admin --quiet --eval "rs.initiate(); rs.conf();"
466468
```
467469

468470
Some useful commands while developing a container:
@@ -511,15 +513,15 @@ RUN apt-get update && \
511513
512514
# Install NodeJS
513515
ENV NODE_VERSION 0.10.40
514-
ENV NPM_VERSION 2.13.3
516+
ENV NPM_VERSION 3.3.12
515517
RUN curl -sSLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" && \
516518
tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 && \
517519
rm "node-v$NODE_VERSION-linux-x64.tar.gz" && \
518520
npm install -g npm@"$NPM_VERSION" && \
519521
npm cache clear
520522
521-
# Add PM2 for process management and PhantomJS
522-
RUN npm install -g pm2 phantomjs
523+
# Add PM2 for process management
524+
RUN npm install -g pm2
523525
524526
# Import sources
525527
COPY bundle /app
@@ -546,9 +548,9 @@ Now copy your `settings.json` files on each hosts using a regular SCP. Mine
546548
are slightly different depending on the target where I deploy my Meteor apps.
547549
```sh
548550
# Just an exammple, adapt it to suit your needs
549-
scp ../app/development.json root@$HOST_IP_DEV:/etc/meteor/settings.json
550-
scp ../app/development.json root@$HOST_IP_DEV:/etc/meteor/settings.json
551-
scp ../app/production.json root@$HOST_IP_DEV:/etc/meteor/settings.json
551+
scp ../app/dev.json root@$HOST_IP_DEV:/etc/meteor/settings.json
552+
scp ../app/dev.json root@$HOST_IP_DEV:/etc/meteor/settings.json
553+
scp ../app/prod.json root@$HOST_IP_DEV:/etc/meteor/settings.json
552554
```
553555

554556
> Note that we do not include our secrets, nor in our code repository by
@@ -617,8 +619,8 @@ MAINTAINER Pierre-Eric Marchandet <[email protected]>
617619
618620
# Add NGinx official repository
619621
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
620-
RUN echo "deb http://nginx.org/packages/mainline/debian/ wheezy nginx" >> /etc/apt/sources.list
621-
ENV NGINX_VERSION 1.9.4-1~wheezy
622+
RUN echo "deb http://nginx.org/packages/debian/ wheezy nginx" >> /etc/apt/sources.list
623+
ENV NGINX_VERSION 1.8.0-1~wheezy
622624
623625
# Update system
624626
ENV DEBIAN_FRONTEND noninteractive
@@ -1285,6 +1287,11 @@ docker-compose -f deploy-prod.yml up -d
12851287
docker-compose -f deploy-prod.yml run --rm db mongo db:27017/admin --quiet --eval "rs.initiate(); rs.conf();"
12861288
```
12871289

1290+
### FAQ
1291+
#### When I use [tap:i18n](https://github.com/TAPevents/tap-i18n/) my translation file are part of the bundle?
1292+
Simply add [TAPi18n Bundler](https://github.com/TAPevents/i18n-bundler) to your
1293+
Meteor project.
1294+
12881295
### Links
12891296
Sources for this tutorial:
12901297
* [Github's repository](https://github.com/PEM--/devops-tuts)

docker/meteor/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,23 @@ RUN apt-get update && \
1919

2020
# Install NodeJS
2121
ENV NODE_VERSION 0.10.40
22-
ENV NPM_VERSION 2.13.3
22+
ENV NPM_VERSION 3.3.12
2323
RUN curl -sSLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" && \
2424
tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 && \
2525
rm "node-v$NODE_VERSION-linux-x64.tar.gz" && \
2626
npm install -g npm@"$NPM_VERSION" && \
2727
npm cache clear
2828

29-
# Add PM2 for process management and restart
30-
RUN npm install -g pm2 phantomjs
29+
# Add PM2 for process management
30+
RUN npm install -g pm2
3131

3232
# Import sources
33-
RUN mkdir /app
3433
COPY bundle /app
3534

3635
# Install Meteor's dependencies
3736
WORKDIR /app
3837
RUN (cd programs/server && npm install)
3938

4039
# Launch application
41-
COPY startMeteor.sh /app/
40+
COPY startMeteor.sh /app/startMeteor.sh
4241
CMD ["./startMeteor.sh"]

docker/nginx/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ MAINTAINER Pierre-Eric Marchandet <[email protected]>
44

55
# Add NGinx official repository
66
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
7-
RUN echo "deb http://nginx.org/packages/mainline/debian/ wheezy nginx" >> /etc/apt/sources.list
8-
ENV NGINX_VERSION 1.9.4-1~wheezy
7+
RUN echo "deb http://nginx.org/packages/debian/ wheezy nginx" >> /etc/apt/sources.list
8+
ENV NGINX_VERSION 1.8.0-1~wheezy
99

1010
# Update system
1111
ENV DEBIAN_FRONTEND noninteractive

0 commit comments

Comments
 (0)