Skip to content
Snippets Groups Projects
Commit 20288200 authored by ale's avatar ale
Browse files

Merge branch 's6' into 'master'

Use S6 instead of chaperone

See merge request !5
parents 386d37d8 f8590aff
No related branches found
No related tags found
1 merge request!5Use S6 instead of chaperone
...@@ -5,8 +5,7 @@ FROM registry.git.autistici.org/ai3/tools/smtpd-pipe:master AS smtpd ...@@ -5,8 +5,7 @@ FROM registry.git.autistici.org/ai3/tools/smtpd-pipe:master AS smtpd
FROM registry.git.autistici.org/ai3/tools/sendmail-go:master AS sendmail FROM registry.git.autistici.org/ai3/tools/sendmail-go:master AS sendmail
# Stage 2: build the final container # Stage 2: build the final container
FROM registry.git.autistici.org/ai3/docker/apache2-base:master FROM registry.git.autistici.org/ai3/docker/apache2-base:s6
COPY start.sh /start.sh
COPY build.sh /tmp/build.sh COPY build.sh /tmp/build.sh
COPY conf/ /etc/ COPY conf/ /etc/
RUN /tmp/build.sh && rm /tmp/build.sh RUN /tmp/build.sh && rm /tmp/build.sh
......
...@@ -45,8 +45,8 @@ install_packages ${BUILD_PACKAGES} ${PACKAGES} \ ...@@ -45,8 +45,8 @@ install_packages ${BUILD_PACKAGES} ${PACKAGES} \
|| die "could not install packages" || die "could not install packages"
# Install some useful RT extensions. # Install some useful RT extensions.
perl -MCPAN -e 'install RT::Extension::ExtractCustomFieldValues ' </dev/null env http_proxy= perl -MCPAN -e 'install RT::Extension::ExtractCustomFieldValues ' </dev/null
perl -MCPAN -e 'install RT::Extension::CommandByMail ' </dev/null env http_proxy= perl -MCPAN -e 'install RT::Extension::CommandByMail ' </dev/null
# Enable the apache modules we need, and our rt4-fcgi config. # Enable the apache modules we need, and our rt4-fcgi config.
a2enmod -q ${APACHE_MODULES_ENABLE} a2enmod -q ${APACHE_MODULES_ENABLE}
......
smtpd.service: {
command: "/usr/bin/smtpd",
exit_kills: true,
env_set: {"LANG": "C", "LC_ALL": "C", "LC_CTYPE": "C"},
}
rt4_setup.service: {
type: oneshot,
stdout: inherit,
service_groups: INIT,
process_timeout: 1800,
command: "/start.sh",
env_set: {"LANG": "C", "LC_ALL": "C", "LC_CTYPE": "C"},
}
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
# directories are correctly symlinked to $static_dir. # directories are correctly symlinked to $static_dir.
# #
export LANG=C LC_ALL=C LC_CTYPE=C
# Get the upstream version from the Debian package, keeping # Get the upstream version from the Debian package, keeping
# just the N.N.N part. # just the N.N.N part.
RT_VERSION=$(dpkg-query --show \ RT_VERSION=$(dpkg-query --show \
......
#!/usr/bin/execlineb -S0
s6-svscanctl -t /var/run/s6/services
#!/bin/sh
export LANG=C LC_ALL=C LC_CTYPE=C
exec /usr/bin/smtpd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment