Nicolas Massé 3 months ago
parent
commit
f23dbef781
  1. 15
      tekton/flightctl-image/Containerfile
  2. 14
      tekton/flightctl-image/build.sh

15
tekton/flightctl-image/Containerfile

@ -0,0 +1,15 @@
FROM registry.access.redhat.com/ubi9/ubi:latest
RUN <<EOF
set -Eeuo pipefail
echo "Disabling Subscription Manager..."
echo -e "[main]\nenabled=0" > /etc/dnf/plugins/subscription-manager.conf
echo "Installing flightctl..."
curl -sSfL -o /etc/yum.repos.d/flightctl-copr.repo https://copr.fedorainfracloud.org/coprs/g/redhat-et/flightctl/repo/rhel-9/group_redhat-et-flightctl-rhel-9.repo
dnf install -y flightctl
echo "Cleaning up..."
dnf clean all
EOF
ENTRYPOINT [ "/usr/bin/flightctl" ]
CMD [ ]

14
tekton/flightctl-image/build.sh

@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
echo "Logging into quay.io..."
podman login quay.io
echo "Building and pushing the flightctl image..."
podman build -t quay.io/nmasse-redhat/flightctl:latest .
podman push quay.io/nmasse-redhat/flightctl:latest
echo "Build and push completed successfully."
echo "Image available at: https://quay.io/repository/nmasse-redhat/flightctl?tab=tags"
exit 0
Loading…
Cancel
Save