You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
578 B
23 lines
578 B
FROM edge-registry.itix.fr/demo-edge-retail/generic:latest
|
|
|
|
ARG ADMIN_USERNAME=demo \
|
|
ADMIN_PASSWORD=redhat
|
|
|
|
RUN <<EOF
|
|
set -Eeuo pipefail
|
|
|
|
dnf config-manager --enable ansible-automation-platform-2.5-for-rhel-9-$(arch)-rpms
|
|
dnf install -y mkpasswd podman skopeo flightctl-agent
|
|
|
|
if [ -n "$ADMIN_USERNAME" ]; then
|
|
useradd -m -G wheel -p "$(echo -n "$ADMIN_PASSWORD" | mkpasswd -m bcrypt --stdin)" "$ADMIN_USERNAME"
|
|
fi
|
|
EOF
|
|
|
|
ADD --chown=root:root root /
|
|
|
|
RUN <<EOF
|
|
set -Eeuo pipefail
|
|
systemctl enable flightctl-agent.service
|
|
systemctl mask bootc-fetch-apply-updates.timer
|
|
EOF
|
|
|