Commit 7ff3316d authored by ale's avatar ale
Browse files

Use S6 instead of chaperone

parent 191e7015
Pipeline #22055 failed with stage
in 21 seconds
......@@ -7,13 +7,11 @@ COPY smtpd.go .
RUN go build -o smtpd smtpd.go
# Stage 2: build the final container
FROM registry.git.autistici.org/ai3/docker/apache2-base:master
COPY start.sh /start.sh
FROM registry.git.autistici.org/ai3/docker/apache2-base:s6
COPY build.sh /tmp/build.sh
COPY ai-lurker-ui.patch /tmp/ai-lurker-ui.patch
COPY conf/ /etc/
COPY --from=build /go/src/smtpd /usr/bin/smtpd
RUN /tmp/build.sh && rm /tmp/build.sh /tmp/ai-lurker-ui.patch
COPY logo.png /var/lib/lurker-www-orig/logo.png
ENTRYPOINT ["/usr/local/bin/chaperone"]
lurker-prune.service: {
type: cron,
interval: "*/15 * * * *",
command: "/usr/bin/lurker-prune",
}
smtpd.service: {
command: "/usr/bin/smtpd",
exit_kills: true,
}
lurker_setup.service: {
type: oneshot,
stdout: inherit,
service_groups: INIT,
process_timeout: 60,
command: "/start.sh",
}
#!/bin/sh
period=900
while true; do
sleep $period
/usr/bin/lurker-prune
done
#!/usr/bin/execlineb -S0
s6-svscanctl -t /var/run/s6/services
#!/bin/sh
exec /usr/bin/smtpd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment