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

Fix quay manifest cache issue #672

Closed
wants to merge 1 commit into from

Conversation

sozercan
Copy link
Member

@sozercan sozercan commented Jun 6, 2020

Signed-off-by: Sertac Ozercan [email protected]

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #665

Special notes for your reviewer:

Signed-off-by: Sertac Ozercan <[email protected]>
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform "linux/amd64,linux/arm64,linux/arm/v7" \
-t $(REPOSITORY):$(DEV_TAG) \
-t $(REPOSITORY):dev \
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform "linux/amd64" \
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't the issue and also defeats the purpose of a multi-arch image where we don't want to re-tag them rather we want an image that is already multi-arch.

This should remain being

	DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform "linux/amd64,linux/arm64,linux/arm/v7" \
		-t $(REPOSITORY):$(DEV_TAG) \
		. --push

Copy link
Member Author

@sozercan sozercan Jun 9, 2020

Choose a reason for hiding this comment

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

This is a workaround for the Quay issue. We can not push same tag to Quay twice using buildx, which will be required for release (pushing latest + version).

Open to suggestions for another fix or workaround

Comment on lines +209 to +210
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push $(REPOSITORY):$(DEV_TAG)
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push $(REPOSITORY):dev
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't see this in my previous PR until now, we don't need both these to be pushed

	DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push $(REPOSITORY):$(DEV_TAG)
	DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push $(REPOSITORY):dev

Makefile L7 DEV_TAG ?= dev which means you're effectively just pushing the same tag twice.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not pushing the same tag twice. If you look at the comment above L7, DEV_TAG gets overriden by 7-digit SHA. It's pushing SHA tag + dev tag (so it's easier to grab the latest dev tag)

Copy link
Contributor

@xunholy xunholy left a comment

Choose a reason for hiding this comment

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

The main issue we needed to resolve was the pushing tags, we didn't need to break the architectures into multiple tags because that wasn't the issue.

The issue was we had two tags we were trying to push in the same --push cmd

@sozercan
Copy link
Member Author

Closing this per discussion in the community call last week, will open a PR to migrate to Docker Hub

@sozercan sozercan closed this Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pushing 2 tags to Quay gives unauthorized error
2 participants