Package prober for LXC deployment

This commit is contained in:
ayurishchev committed 2026-11-20 07:25:31 +03:00
1 parent 70fdef2ea1
commit a6c52a835f
8 files changed
+128

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
FROM alpine:3.23
RUN apk add --no-cache alpine-base gettext-envsubst \
&& sed -i '/::respawn:.*getty/d' /etc/inittab \
&& sed -i 's/^#rc_sys=""/rc_sys="lxc"/' /etc/rc.conf \
&& mkdir -p /etc/network \
&& printf 'auto lo\niface lo inet loopback\n\nauto eth0\niface eth0 inet dhcp\n' > /etc/network/interfaces \
&& rc-update add bootmisc boot \
&& rc-update add devfs boot \
&& rc-update add syslog boot \
&& rc-update add networking default
COPY --chmod=0755 bin/prober /usr/local/bin/prober
COPY deploy/docker/prober/prober.yaml.tmpl /etc/prober/prober.yaml.tmpl
COPY --chmod=0755 deploy/docker/prober/docker-entrypoint.sh /usr/local/bin/prober-entrypoint
COPY deploy/lxc/prober/prober.env.example /etc/prober/prober.env.example
COPY --chmod=0755 deploy/lxc/prober/prober-run /usr/local/bin/prober-run
COPY --chmod=0755 deploy/lxc/prober/prober.initd /etc/init.d/prober
# LXC mounts /dev before starting init.
RUN printf '\nskip_mount_dev="yes"\n' >> /etc/conf.d/devfs \
&& rc-update add prober default \
&& test -x /sbin/init \
&& test -x /etc/init.d/networking \
&& test -s /etc/ssl/cert.pem