2 changed files with 29 additions and 0 deletions
@ -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 [ ] |
||||
@ -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…
Reference in new issue