@@ -19,14 +19,16 @@ the complete list of versions used in this tutorial:
19
19
* OSX 10.10.5 as the development platform
20
20
* Ubuntu 15.04 as Docker host system
21
21
* Debian Jessie 7 with latest updates as Docker container system
22
- * Docker 1.8 .1
22
+ * Docker 1.9 .1
23
23
* 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
27
28
* 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
30
32
* Mongo 3.0.6 - WiredTiger
31
33
32
34
![ Software architecture] ( https://raw.githubusercontent.com/PEM--/devops-tuts/master/doc/software_architecture.png )
@@ -462,7 +464,7 @@ docker-compose up -d db
462
464
And once it's running, initialize a single instance ReplicaSet for making
463
465
Oplog tailing available :
464
466
` ` ` 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();"
466
468
` ` `
467
469
468
470
Some useful commands while developing a container :
@@ -511,15 +513,15 @@ RUN apt-get update && \
511
513
512
514
# Install NodeJS
513
515
ENV NODE_VERSION 0.10.40
514
- ENV NPM_VERSION 2.13.3
516
+ ENV NPM_VERSION 3.3.12
515
517
RUN curl -sSLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" && \
516
518
tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 && \
517
519
rm "node-v$NODE_VERSION-linux-x64.tar.gz" && \
518
520
npm install -g npm@"$NPM_VERSION" && \
519
521
npm cache clear
520
522
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
523
525
524
526
# Import sources
525
527
COPY bundle /app
@@ -546,9 +548,9 @@ Now copy your `settings.json` files on each hosts using a regular SCP. Mine
546
548
are slightly different depending on the target where I deploy my Meteor apps.
547
549
` ` ` sh
548
550
# 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
552
554
` ` `
553
555
554
556
> Note that we do not include our secrets, nor in our code repository by
617
619
618
620
# Add NGinx official repository
619
621
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
622
624
623
625
# Update system
624
626
ENV DEBIAN_FRONTEND noninteractive
@@ -1285,6 +1287,11 @@ docker-compose -f deploy-prod.yml up -d
1285
1287
docker-compose -f deploy-prod.yml run --rm db mongo db:27017/admin --quiet --eval "rs.initiate(); rs.conf();"
1286
1288
` ` `
1287
1289
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
+
1288
1295
# ## Links
1289
1296
Sources for this tutorial :
1290
1297
* [Github's repository](https://github.com/PEM--/devops-tuts)
0 commit comments