Nicolas Massé 5 days ago
parent
commit
b3e208a8da
  1. 8
      examples/allinone/Containerfile
  2. 2
      examples/allinone/root/etc/containers/systemd/helloworld.container

8
examples/allinone/Containerfile

@ -10,7 +10,7 @@ set -Eeuo pipefail
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
# Install packages # Install packages
dnf install -y mkpasswd podman skopeo flightctl-agent cockpit cockpit-podman cockpit-files \ dnf install -y mkpasswd podman skopeo cockpit cockpit-podman cockpit-files \
cockpit-ostree cockpit-pcp cockpit-system greenboot greenboot-default-health-checks \ cockpit-ostree cockpit-pcp cockpit-system greenboot greenboot-default-health-checks \
stress-ng yq podman-compose tmux tcpdump htop iptraf-ng stress-ng yq podman-compose tmux tcpdump htop iptraf-ng
dnf clean all dnf clean all
@ -19,13 +19,13 @@ dnf clean all
if [ -n "$ADMIN_USERNAME" ]; then if [ -n "$ADMIN_USERNAME" ]; then
useradd -m -G wheel -p "$(echo -n "$ADMIN_PASSWORD" | mkpasswd -m bcrypt --stdin)" "$ADMIN_USERNAME" useradd -m -G wheel -p "$(echo -n "$ADMIN_PASSWORD" | mkpasswd -m bcrypt --stdin)" "$ADMIN_USERNAME"
fi fi
# Pull physically-bound images (see https://docs.fedoraproject.org/en-US/bootc/embedding-containers/)
/usr/local/bin/embed_image.sh docker.io/library/helloworld:latest
EOF EOF
ADD --chown=root:root root / ADD --chown=root:root root /
# Pull physically-bound images (see https://docs.fedoraproject.org/en-US/bootc/embedding-containers/)
RUN /usr/local/bin/embed_image.sh docker.io/library/hello-world:latest
RUN <<EOF RUN <<EOF
set -Eeuo pipefail set -Eeuo pipefail

2
examples/allinone/root/etc/containers/systemd/helloworld.container

@ -4,7 +4,7 @@ Require=copy-embedded-images.service
After=copy-embedded-images.service After=copy-embedded-images.service
[Container] [Container]
Image=docker.io/library/helloworld:latest Image=docker.io/library/hello-world:latest
Pull=never Pull=never
[Service] [Service]

Loading…
Cancel
Save