-
Notifications
You must be signed in to change notification settings - Fork 13
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,10 +66,6 @@ else | |
GOBIN=$(shell $(GO) env GOBIN) | ||
endif | ||
|
||
ifeq ($(IMAGE_PLATFORM),) | ||
IMAGE_PLATFORM=linux/$(shell $(GO) env GOARCH) | ||
endif | ||
|
||
ifeq ($(CLUSTER_DNS),) | ||
# This makes sure that the "ingresscontroller" kind, which only exists on OpenShift by default, is only queried | ||
# when CLUSTER_DNS is not set. | ||
|
@@ -497,12 +493,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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: How about renaming |
||
@DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) login -u "${QUAY_USER}" --password-stdin <<< "${QUAY_TOKEN}" quay.io | ||
.PHONY: docker/login/fleet-manager | ||
|
||
docker/login/probe: | ||
@docker logout quay.io | ||
$(DOCKER) logout quay.io || true # Swallow podman error if not logged in | ||
@DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) login -u "${QUAY_PROBE_USER}" --password-stdin <<< "${QUAY_PROBE_TOKEN}" quay.io | ||
.PHONY: docker/login/probe | ||
|
||
|
@@ -513,7 +509,8 @@ docker/login/internal: | |
|
||
# Build the image | ||
image/build: | ||
DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) buildx build -t $(SHORT_IMAGE_REF) . --load | ||
DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) build -t $(SHORT_IMAGE_REF) . | ||
DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) tag $(IMAGE_REF) $(SHORT_IMAGE_REF) | ||
@echo "New image tag: $(SHORT_IMAGE_REF). You might want to" | ||
@echo "export FLEET_MANAGER_IMAGE=$(SHORT_IMAGE_REF)" | ||
ifeq ("$(CLUSTER_TYPE)","kind") | ||
|
@@ -557,16 +554,11 @@ image/push/emailsender: image/build/emailsender | |
@echo "emailsender image was pushed as $(IMAGE_REF)." | ||
.PHONY: image/push/emailsender | ||
|
||
# Build and push the image | ||
image/push: image/push/fleet-manager image/push/probe | ||
.PHONY: image/push | ||
|
||
image/push/fleet-manager: IMAGE_REF="$(external_image_registry)/$(image_repository):$(image_tag)" | ||
image/push/fleet-manager: | ||
DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) buildx build -t $(IMAGE_REF) --platform $(IMAGE_PLATFORM) --push . | ||
image/push/fleet-manager: image/build | ||
DOCKER_CONFIG=${DOCKER_CONFIG} $(DOCKER) push $(IMAGE_REF) | ||
@echo | ||
@echo "Image was pushed as $(IMAGE_REF). You might want to" | ||
@echo "export FLEET_MANAGER_IMAGE=$(IMAGE_REF)" | ||
@echo "Image was pushed as $(IMAGE_REF)." | ||
.PHONY: image/push/fleet-manager | ||
|
||
image/push/probe: IMAGE_REF="$(external_image_registry)/$(probe_image_repository):$(image_tag)" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ source ./scripts/build_setup.sh | |
# Push the image: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment for the lines 47, 57: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure which lines /flags you mean, can you please specify? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
echo "Quay.io user and token is set, will push images to $IMAGE_REPOSITORY" | ||
make \ | ||
DOCKER=podman \ | ||
DOCKER_CONFIG="${DOCKER_CONFIG}" \ | ||
QUAY_USER="${QUAY_USER}" \ | ||
QUAY_TOKEN="${QUAY_TOKEN}" \ | ||
|
@@ -51,6 +52,7 @@ make \ | |
image/push/fleet-manager | ||
|
||
make \ | ||
DOCKER=podman \ | ||
DOCKER_CONFIG="${DOCKER_CONFIG}" \ | ||
QUAY_USER="${QUAY_USER}" \ | ||
QUAY_TOKEN="${QUAY_TOKEN}" \ | ||
|
@@ -62,6 +64,7 @@ make \ | |
image/push/fleet-manager | ||
|
||
make \ | ||
DOCKER=podman \ | ||
DOCKER_CONFIG="${DOCKER_CONFIG}" \ | ||
QUAY_PROBE_USER="${QUAY_USER}" \ | ||
QUAY_PROBE_TOKEN="${QUAY_TOKEN}" \ | ||
|
@@ -72,6 +75,7 @@ make \ | |
image/push/probe | ||
|
||
make \ | ||
DOCKER=podman \ | ||
DOCKER_CONFIG="${DOCKER_CONFIG}" \ | ||
QUAY_PROBE_USER="${QUAY_USER}" \ | ||
QUAY_PROBE_TOKEN="${QUAY_TOKEN}" \ | ||
|
@@ -83,6 +87,7 @@ make \ | |
image/push/probe | ||
|
||
make \ | ||
DOCKER=podman \ | ||
DOCKER_CONFIG="${DOCKER_CONFIG}" \ | ||
QUAY_USER="${QUAY_USER}" \ | ||
QUAY_TOKEN="${QUAY_TOKEN}" \ | ||
|
@@ -93,6 +98,7 @@ make \ | |
image/push/emailsender | ||
|
||
make \ | ||
DOCKER=podman \ | ||
DOCKER_CONFIG="${DOCKER_CONFIG}" \ | ||
QUAY_USER="${QUAY_USER}" \ | ||
QUAY_TOKEN="${QUAY_TOKEN}" \ | ||
|
There was a problem hiding this comment.
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.