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

build: small improvements and related changes #1836

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

hdonnay
Copy link
Member

@hdonnay hdonnay commented Aug 3, 2023

These changes:

  • remove the sh loop, which should let the build commands link in parallel
  • allow for vcs information to get added to the build context
  • tweak the Makefile and README

@hdonnay hdonnay requested a review from a team as a code owner August 3, 2023 13:28
@hdonnay hdonnay requested review from RTann and removed request for a team August 3, 2023 13:28
Makefile Outdated
go mod vendor

comma := ,
volflags:= rw$(if $(findstring podman,$(docker)),$(comma)Z,)
build-vols := --volume "$$(go env GOMODCACHE):/go/pkg/mod:$(volflags)"\
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess this is podman build option only and not docker build

Copy link
Member Author

@hdonnay hdonnay Aug 3, 2023

Choose a reason for hiding this comment

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

The selinux labeling? I think so yeah.

Edit: Oh, yeah I see what you mean.

This invocation is equivalent and should be slightly faster by letting
all the commands link in parallel.

Signed-off-by: Hank Donnay <[email protected]>
Signed-off-by: Hank Donnay <[email protected]>
Signed-off-by: Hank Donnay <[email protected]>
Signed-off-by: Hank Donnay <[email protected]>
@hdonnay hdonnay merged commit 7cc2107 into quay:main Aug 7, 2023
7 checks passed
@hdonnay hdonnay deleted the hack/docker-build branch August 7, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants