Skip to content

Commit

Permalink
Update the task image for use on remote and local builds
Browse files Browse the repository at this point in the history
As part of build-definitions#1216, we need to have a version of buildah
that can work for both local and remote builds. This ports over the
changes needed for the remote runner while still being able to use the
latest buildah images.

The prior containerfile was https://github.com/konflux-ci/build-tasks-dockerfiles/blob/main/multi-platform-runner/Dockerfile

Signed-off-by: arewm <[email protected]>
  • Loading branch information
arewm committed Aug 5, 2024
1 parent d9d0c2b commit 77bd5fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Containerfile.task
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Konflux does not only support running builds in containers locally but also supports running builds
# in remote VMs with the multi-platform controller. In order to simplify the specification of build
# targets, however, we are adding support for the multi-platform controller to also be able to build
# in-cluseter with the tasks focused on building remotely. Therefore, we need to maintain a buildah image
# for our tasks that has more than _just_ buildah in it. We also need to add the required functionality
# for the remote builds.
FROM quay.io/redhat-user-workloads/rhtap-build-tenant/buildah-container/buildah@sha256:582df00cc6f76ef7e23111f2f83f5f56327cd4134f0518b93b9148c17fdd8ed1
RUN microdnf install -y rsync openssh-clients kubernetes-client && \
microdnf -y clean all && \
rm -rf /var/cache /var/log/dnf* /var/log/yum.*
6 changes: 0 additions & 6 deletions Containerfile.task-image

This file was deleted.

0 comments on commit 77bd5fc

Please sign in to comment.