forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] bump debian version (open-telemetry#21177)
Getting 404s when trying to run apt update w/ debian 9 --------- Signed-off-by: Alex Boten <[email protected]> (cherry picked from commit 80069fb)
- Loading branch information
Showing
2 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# A debian9 image with systemd enabled. Must be run with: | ||
# A debian11 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM debian:9 | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd | ||
FROM debian:11 | ||
|
||
ENV container docker | ||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.wants/*;\ | ||
rm -f /lib/systemd/system/local-fs.target.wants/*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ | ||
rm -f /lib/systemd/system/anaconda.target.wants/*; | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
# Enable systemd. | ||
RUN apt-get update ; \ | ||
apt-get install -y systemd systemd-sysv procps; \ | ||
apt-get clean ; \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ; \ | ||
rm -rf /lib/systemd/system/multi-user.target.wants/* ; \ | ||
rm -rf /etc/systemd/system/*.wants/* ; \ | ||
rm -rf /lib/systemd/system/local-fs.target.wants/* ; \ | ||
rm -rf /lib/systemd/system/sockets.target.wants/*udev* ; \ | ||
rm -rf /lib/systemd/system/sockets.target.wants/*initctl* ; \ | ||
rm -rf /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* ; \ | ||
rm -rf /lib/systemd/system/systemd-update-utmp* | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENTRYPOINT ["/lib/systemd/systemd"] | ||
CMD ["/lib/systemd/systemd"] |