Skip to content

Commit ecbc55f

Browse files
committed
Updated to latest s6-overlay
1 parent c288886 commit ecbc55f

File tree

28 files changed

+94
-98
lines changed

28 files changed

+94
-98
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ COPY --from=testca /home/step/certs/root_ca.crt /etc/ssl/certs/NginxProxyManager
4444

4545
# These acmesh vars are defined in the base image
4646
ENV SUPPRESS_NO_CONFIG_WARNING=1 \
47-
S6_FIX_ATTRS_HIDDEN=1 \
47+
S6_LOGGING=0 \
4848
ACMESH_CONFIG_HOME=/data/.acme.sh/config \
4949
ACMESH_HOME=/data/.acme.sh \
5050
CERT_HOME=/data/.acme.sh/certs \

docker/dev/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ENV GOPROXY=$GOPROXY \
1212
GOPRIVATE=$GOPRIVATE \
1313
S6_LOGGING=0 \
1414
SUPPRESS_NO_CONFIG_WARNING=1 \
15-
S6_FIX_ATTRS_HIDDEN=1 \
1615
ACMESH_CONFIG_HOME=/data/.acme.sh/config \
1716
ACMESH_HOME=/data/.acme.sh \
1817
CERT_HOME=/data/.acme.sh/certs \
@@ -35,12 +34,14 @@ RUN cd /usr \
3534
&& curl -sL https://taskfile.dev/install.sh | sh \
3635
&& cd /root
3736

38-
COPY rootfs /
37+
COPY docker/rootfs /
3938
RUN rm -f /etc/nginx/conf.d/production.conf
4039

4140
# s6 overlay
42-
RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz" \
43-
&& tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
41+
COPY scripts/install-s6 /tmp/install-s6
42+
RUN /tmp/install-s6 && rm -rf /tmp/*
43+
#RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz" \
44+
# && tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
4445

4546
# Fix for golang dev:
4647
RUN chown -R 1000:1000 /opt/go

docker/rootfs/etc/cont-finish.d/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker/rootfs/etc/cont-init.d/10-nginx

Lines changed: 0 additions & 18 deletions
This file was deleted.

docker/rootfs/etc/cont-init.d/20-adduser

Lines changed: 0 additions & 33 deletions
This file was deleted.

docker/rootfs/etc/fix-attrs.d/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker/rootfs/etc/s6-overlay/s6-rc.d/backend/dependencies.d/prepare

Whitespace-only changes.
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#!/usr/bin/with-contenv bash
1+
#!/command/with-contenv bash
2+
set -e
23

3-
RESET='\E[0m'
4-
YELLOW='\E[1;33m'
5-
6-
echo -e "${YELLOW}Starting backend API ...${RESET}"
4+
echo "❯ Starting backend ..."
75

86
if [ "$DEVELOPMENT" == "true" ]; then
97
HOME=/tmp/npmuserhome
@@ -13,12 +11,8 @@ if [ "$DEVELOPMENT" == "true" ]; then
1311
export HOME GOPATH
1412
rm -rf /app/backend/.task
1513
cd /app/backend || exit 1
16-
s6-setuidgid npmuser task -w
14+
exec s6-setuidgid npmuser task -w
1715
else
1816
cd /app/bin || exit 1
19-
while :
20-
do
21-
s6-setuidgid npmuser /app/bin/server
22-
sleep 1
23-
done
17+
exec s6-setuidgid npmuser /app/bin/server
2418
fi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
longrun

docker/rootfs/etc/s6-overlay/s6-rc.d/frontend/dependencies.d/prepare

Whitespace-only changes.

0 commit comments

Comments
 (0)