Try to get more times

This commit is contained in:
Christopher Hoskin
2019-10-25 10:42:21 +01:00
parent d9f487efc4
commit d04df4ed75
3 changed files with 33 additions and 22 deletions

25
entrypoint.sh Executable file → Normal file
View File

@@ -1,25 +1,6 @@
#!/bin/sh
#!/bin/bash
date
echo "Changing permissions of /var/run/docker.sock for sibling containers"
ls -al /var/run/docker.sock
docker --version
cat /etc/passwd
set -o pipefail
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
usermod -aG dockeronhost node
inner-entrypoint.sh "$@" | ts
mkdir -p /app/cache
chown -R node:node /app/cache
mkdir -p /app/compiles
chown -R node:node /app/compiles
chown -R node:node /app/bin/synctex
mkdir -p /app/test/acceptance/fixtures/tmp/
chown -R node:node /app
chown -R node:node /app/bin
exec runuser -u node -- "$@"