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 \
|
openssl \
|
||||||
rsyslog \
|
rsyslog \
|
||||||
yarn
|
yarn
|
||||||
RUN yarn global add pm2
|
RUN yarn global add pm2@2
|
||||||
|
|
||||||
|
|
||||||
# Set up cronjobs
|
# 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
|
# Set up pm2
|
||||||
RUN pm2 startup systemv -u root > /dev/null \
|
RUN pm2 startup systemv -u root > /dev/null
|
||||||
# Ugly!
|
RUN chkconfig pm2-root on
|
||||||
|| echo " ---> Working around https://github.com/Unitech/pm2/commit/a788e523e#commitcomment-20851443" \
|
|
||||||
&& chkconfig --add pm2 > /dev/null
|
|
||||||
RUN chkconfig pm2 on
|
|
||||||
|
|
||||||
|
|
||||||
# Set up the shell scripts
|
# Set up the shell scripts
|
||||||
|
|
|
@ -19,7 +19,7 @@ services=(
|
||||||
rsyslog
|
rsyslog
|
||||||
cron
|
cron
|
||||||
nginx
|
nginx
|
||||||
pm2
|
pm2-root
|
||||||
)
|
)
|
||||||
for s in ${services[@]}; do
|
for s in ${services[@]}; do
|
||||||
service $s status > /dev/null
|
service $s status > /dev/null
|
||||||
|
|
|
@ -10,6 +10,6 @@ service rsyslog start
|
||||||
service cron start
|
service cron start
|
||||||
service dnsmasq start
|
service dnsmasq start
|
||||||
service nginx start
|
service nginx start
|
||||||
service pm2 start
|
service pm2-root start
|
||||||
aio-upload-server-prod start
|
aio-upload-server-prod start
|
||||||
echo [`date`] - Services started successfully.
|
echo [`date`] - Services started successfully.
|
||||||
|
|
Loading…
Reference in New Issue