zeus 4 years ago
parent
commit
0c5cd927e4
  1. 1
      Dockerfile
  2. 4
      startup.sh

1
Dockerfile

@ -7,7 +7,6 @@ LABEL MAINTAINERS="Guillaume Scheibel <guillaume.scheibel@gmail.com>, Damien DUP
# build/llo-base-images/asciidoctor-alpine/docker-asciidoctor
RUN apk add --no-cache \
bash \
sudo \
curl \
ca-certificates \
findutils \

4
startup.sh

@ -78,7 +78,7 @@ chmod +x /home/$USER/crond/playground-sync.sh
read -r -d '' VAR <<EOF
#!/bin/bash
sudo -H -u node /bin/bash -c 'cd /home/$USER/$REPO/swarmlab-app/src; npm install; npm cache clean --force;'
su -c 'cd /home/node/playground-nodejs/swarmlab-app/src; npm install; npm cache clean --force;' - node
EOF
echo "$VAR" > /home/$USER/crond/playground-npm-install.sh
@ -140,7 +140,7 @@ chmod -R 755 /home/$USER
/home/$USER/crond/playground-sync.sh
sudo -H -u node bash /home/$USER/crond/playground-npm-install.sh
/home/$USER/crond/playground-npm-install.sh
/home/$USER/crond/playground-start.sh
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

Loading…
Cancel
Save