2018-03-06 05:59:40 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-02-19 05:32:50 -05:00
|
|
|
docker --version >&2
|
2019-04-21 19:38:24 -04:00
|
|
|
|
|
|
|
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
|
|
|
|
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
|
|
|
|
usermod -aG dockeronhost node
|
2018-03-16 13:30:11 -04:00
|
|
|
|
|
|
|
mkdir -p /app/cache
|
2018-03-19 10:10:45 -04:00
|
|
|
chown -R node:node /app/cache
|
2018-03-16 13:30:11 -04:00
|
|
|
|
|
|
|
mkdir -p /app/compiles
|
2018-03-19 10:10:45 -04:00
|
|
|
chown -R node:node /app/compiles
|
2018-03-16 13:10:56 -04:00
|
|
|
|
2018-03-29 08:07:55 -04:00
|
|
|
chown -R node:node /app/bin/synctex
|
|
|
|
mkdir -p /app/test/acceptance/fixtures/tmp/
|
|
|
|
chown -R node:node /app
|
|
|
|
|
2018-08-22 19:10:06 -04:00
|
|
|
chown -R node:node /app/bin
|
2018-03-29 08:07:55 -04:00
|
|
|
|
2020-03-11 07:06:46 -04:00
|
|
|
cp /app/bin/synctex /app/bin/synctex-mount/synctex
|
|
|
|
|
2019-01-15 06:29:04 -05:00
|
|
|
exec runuser -u node -- "$@"
|