overleaf/services/clsi/entrypoint.sh

17 lines
493 B
Bash
Raw Normal View History

2018-03-06 10:59:40 +00:00
#!/bin/sh
docker --version >&2
# add the node user to the docker group on the host
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
usermod -aG dockeronhost node
# compatibility: initial volume setup
mkdir -p /app/cache && chown node:node /app/cache
mkdir -p /app/compiles && chown node:node /app/compiles
mkdir -p /app/db && chown node:node /app/db
2021-02-18 15:33:16 +00:00
mkdir -p /app/output && chown node:node /app/output
exec runuser -u node -- "$@"