build(aio): upgrade to latest and pin major pm2 version

This commit is contained in:
Georgios Kalpakas 2017-03-02 00:05:59 +02:00 committed by Chuck Jazdzewski
parent 03a5fd01c9
commit d275667da0
3 changed files with 5 additions and 8 deletions

View File

@ -49,7 +49,7 @@ RUN apt-get update -y && apt-get install -y \
openssl \
rsyslog \
yarn
RUN yarn global add pm2
RUN yarn global add pm2@2
# Set up cronjobs
@ -104,11 +104,8 @@ RUN ln -s /etc/nginx/sites-available/aio-builds-test.conf /etc/nginx/sites-enabl
# Set up pm2
RUN pm2 startup systemv -u root > /dev/null \
# Ugly!
|| echo " ---> Working around https://github.com/Unitech/pm2/commit/a788e523e#commitcomment-20851443" \
&& chkconfig --add pm2 > /dev/null
RUN chkconfig pm2 on
RUN pm2 startup systemv -u root > /dev/null
RUN chkconfig pm2-root on
# Set up the shell scripts

View File

@ -19,7 +19,7 @@ services=(
rsyslog
cron
nginx
pm2
pm2-root
)
for s in ${services[@]}; do
service $s status > /dev/null

View File

@ -10,6 +10,6 @@ service rsyslog start
service cron start
service dnsmasq start
service nginx start
service pm2 start
service pm2-root start
aio-upload-server-prod start
echo [`date`] - Services started successfully.