Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-24040: Set Podman instead of Docker to fix RHEL8 builders #1917

Closed
wants to merge 2 commits into from

Conversation

ebensh
Copy link
Collaborator

@ebensh ebensh commented Jun 26, 2024

buildx build --push is not yet supported by Podman: containers/buildah#4677
So we switch to single-arch build, then build and push separately to match the other deployments.

Tested:

QUAY_USER=ebenshet+ebenshet_quay_robot QUAY_TOKEN=abc123 QUAY_IMAGE_REPOSITORY=ebenshet/myrepo PROBE_QUAY_IMAGE_REPOSITORY=ebenshet/myrepo EMAILSENDER_QUAY_IMAGE_REPOSITORY=ebenshet/myrepo ./build_push_app_interface.sh

@ebensh ebensh requested a review from kovayur June 26, 2024 15:16
@@ -36,6 +36,9 @@ IMAGE_REPOSITORY="${QUAY_IMAGE_REPOSITORY:-app-sre/acs-fleet-manager}"
PROBE_IMAGE_REPOSITORY="${PROBE_QUAY_IMAGE_REPOSITORY:-app-sre/acscs-probe}"
EMAILSENDER_IMAGE_REPOSITORY="${PROBE_QUAY_IMAGE_REPOSITORY:-app-sre/acscs-emailsender}"

# Support RHEL8 build images for App-Interface ci-ext
DOCKER=podman

source ./scripts/build_setup.sh

# Push the image:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment for the lines 47, 57:
Do we need remove this for podman or use an alternative?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which lines /flags you mean, can you please specify?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOCKER_CONFIG=${DOCKER_CONFIG}
We used it only on app-interface and I'm happy to get rid of it.
I don't think it makes any difference to podman.

@kovayur
Copy link
Contributor

kovayur commented Jun 26, 2024

I'm not sure if buildx command is supported for podman. Have you tried it?

@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 377236d to 53e3b34 Compare June 26, 2024 15:52
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 53e3b34 to c3508bc Compare June 27, 2024 11:24
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from c3508bc to 1b58eca Compare June 27, 2024 11:26
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 1b58eca to c9de2dd Compare June 28, 2024 11:40
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from c9de2dd to 0df3ecb Compare June 28, 2024 11:41
@@ -497,12 +497,12 @@ docker/login: docker/login/fleet-manager
.PHONY: docker/login

docker/login/fleet-manager:
@docker logout quay.io
$(DOCKER) logout quay.io || true # Swallog podman error if not logged in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: How about renaming DOCKER to CONTAINER_ENGINE ?

@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 0df3ecb to f910aa3 Compare June 28, 2024 11:52
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 71d8187 to feba6e3 Compare June 28, 2024 12:56
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from feba6e3 to 26bb920 Compare June 28, 2024 13:03
@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 26bb920 to 2d07a64 Compare June 28, 2024 13:05
@ebensh
Copy link
Collaborator Author

ebensh commented Jun 28, 2024

@kovayur PTAL

@ebensh ebensh requested a review from kovayur June 28, 2024 13:06
@openshift-ci openshift-ci bot added the lgtm label Jun 28, 2024
Copy link
Contributor

openshift-ci bot commented Jun 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ebensh, ludydoo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ebensh ebensh force-pushed the ebenshet/ROX-24040-rhel8-use-podman branch from 2d07a64 to bbcafce Compare June 28, 2024 13:10
@openshift-ci openshift-ci bot removed the lgtm label Jun 28, 2024
Copy link
Contributor

openshift-ci bot commented Jun 28, 2024

New changes are detected. LGTM label has been removed.

@@ -66,10 +66,6 @@ else
GOBIN=$(shell $(GO) env GOBIN)
endif

ifeq ($(IMAGE_PLATFORM),)
Copy link
Contributor

@kovayur kovayur Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break multi-arch builds.

  1. We build arm images on Github actions
  2. We can build x86 images for openshift internal registry (image/push/internal) on arm based machines

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ebensh ebensh closed this Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants