Skip to content

Commit 5b7682f

Browse files
committed
Update s6-overlay and move processes to new format
1 parent b30fcb5 commit 5b7682f

File tree

24 files changed

+97
-63
lines changed

24 files changed

+97
-63
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
2525
&& rm -rf /var/lib/apt/lists/*
2626

2727
# s6 overlay
28-
COPY scripts/install-s6 /tmp/install-s6
28+
COPY docker/scripts/install-s6 /tmp/install-s6
2929
RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6
3030

3131
EXPOSE 80 81 443

docker/dev/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV S6_LOGGING=0 \
77

88
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
99
&& apt-get update \
10-
&& apt-get install -y certbot jq python3-pip logrotate \
10+
&& apt-get install -y jq python3-pip logrotate \
1111
&& apt-get clean \
1212
&& rm -rf /var/lib/apt/lists/*
1313

@@ -21,9 +21,8 @@ RUN rm -f /etc/nginx/conf.d/production.conf
2121
RUN chmod 644 /etc/logrotate.d/nginx-proxy-manager
2222

2323
# s6 overlay
24-
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" \
25-
&& tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
24+
COPY scripts/install-s6 /tmp/install-s6
25+
RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6
2626

2727
EXPOSE 80 81 443
2828
ENTRYPOINT [ "/init" ]
29-

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

Whitespace-only changes.

docker/rootfs/etc/services.d/manager/run renamed to docker/rootfs/etc/s6-overlay/s6-rc.d/backend/run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/with-contenv bash
1+
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

3-
mkdir -p /data/letsencrypt-acme-challenge
4-
5-
cd /app || echo
4+
set -e
65

6+
echo "❯ Starting backend ..."
77
if [ "$DEVELOPMENT" == "true" ]; then
88
cd /app || exit 1
99
# If yarn install fails: add --verbose --network-concurrency 1
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.

docker/rootfs/etc/services.d/frontend/run renamed to docker/rootfs/etc/s6-overlay/s6-rc.d/frontend/run

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#!/usr/bin/with-contenv bash
1+
#!/command/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
set -e
25

36
# This service is DEVELOPMENT only.
47

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/nginx/dependencies.d/prepare

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/command/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
set -e
5+
6+
echo "❯ Starting nginx ..."
7+
exec nginx

0 commit comments

Comments
 (0)