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

View File

@@ -1,5 +1,10 @@
FROM node:10.15.0 as app
RUN \
apt -y update && \
apt -y install moreutils
WORKDIR /app
#wildcard as some files may not be in all repos

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 -- "$@"

25
inner-entrypoint.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
date
echo "Changing permissions of /var/run/docker.sock for sibling containers"
ls -al /var/run/docker.sock
docker --version
cat /etc/passwd
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
usermod -aG dockeronhost node
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 -- "$@"