build(aio): upgrade to latest and pin major pm2 version
This commit is contained in:
parent
03a5fd01c9
commit
d275667da0
|
@ -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
|
||||
|
|
|
@ -19,7 +19,7 @@ services=(
|
|||
rsyslog
|
||||
cron
|
||||
nginx
|
||||
pm2
|
||||
pm2-root
|
||||
)
|
||||
for s in ${services[@]}; do
|
||||
service $s status > /dev/null
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue