2018-03-06 10:59:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "Changing permissions of /var/run/docker.sock for sibling containers"
|
2018-03-29 12:07:55 +00:00
|
|
|
ls -al /var/run/docker.sock
|
|
|
|
docker --version
|
|
|
|
cat /etc/passwd
|
2019-04-21 23:38:24 +00:00
|
|
|
|
|
|
|
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
|
|
|
|
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
|
|
|
|
usermod -aG dockeronhost node
|
2018-03-16 17:30:11 +00:00
|
|
|
|
|
|
|
mkdir -p /app/cache
|
2018-03-19 14:10:45 +00:00
|
|
|
chown -R node:node /app/cache
|
2018-03-16 17:30:11 +00:00
|
|
|
|
|
|
|
mkdir -p /app/compiles
|
2018-03-19 14:10:45 +00:00
|
|
|
chown -R node:node /app/compiles
|
2018-03-16 17:10:56 +00:00
|
|
|
|
2018-03-29 12:07:55 +00:00
|
|
|
chown -R node:node /app/bin/synctex
|
|
|
|
mkdir -p /app/test/acceptance/fixtures/tmp/
|
|
|
|
chown -R node:node /app
|
|
|
|
|
2018-08-22 23:10:06 +00:00
|
|
|
chown -R node:node /app/bin
|
2018-03-29 12:07:55 +00:00
|
|
|
|
2018-03-08 15:38:17 +00:00
|
|
|
./bin/install_texlive_gce.sh
|
2019-01-15 11:29:04 +00:00
|
|
|
exec runuser -u node -- "$@"
|