Try to get more times
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
FROM node:10.15.0 as app
|
FROM node:10.15.0 as app
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apt -y update && \
|
||||||
|
apt -y install moreutils
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
#wildcard as some files may not be in all repos
|
#wildcard as some files may not be in all repos
|
||||||
|
|||||||
25
entrypoint.sh
Executable file → Normal file
25
entrypoint.sh
Executable file → Normal file
@@ -1,25 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
date
|
set -o pipefail
|
||||||
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)
|
inner-entrypoint.sh "$@" | ts
|
||||||
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 -- "$@"
|
|
||||||
|
|||||||
25
inner-entrypoint.sh
Executable file
25
inner-entrypoint.sh
Executable 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 -- "$@"
|
||||||
Reference in New Issue
Block a user