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: add placeholder os version value for linux docker build #2916

Closed
wants to merge 1 commit into from

Conversation

QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Aug 13, 2024

Reason for Change:

If in the pipelines a linux agent cannot find buildah (for some reason), it falls back to docker. Docker expects non-empty build args. In linux, OS_VERSION is not used, so we don't populate it, but docker needs some value for it, or there will be an error. So, if the value is not set, we put a placeholder value so there is no error in linux. In windows, we DOCKER_OS_VERSION just becomes the value of OS_VERSION like normal. The ARG OS_VERSION=none is not necessary but takes care of some of the dockerfile warnings.

Issue Fixed:

See above

Requirements:

Notes:

@QxBytes QxBytes force-pushed the alew/placeholder-os-version branch from f6598c6 to 396e366 Compare August 13, 2024 19:04
@rbtr
Copy link
Contributor

rbtr commented Aug 13, 2024

I am concerned that sometimes the pipelines use docker, and sometimes buildah. Pipeline runs should be reproducible and this inconsistency is not acceptable. I would rather explicitly set the CONTAINER_BUILDER=buildah and have the pipeline fail if it is not present, than have it silently use a different builder.

@timraymond
Copy link
Member

Agree w/ @rbtr. I would go so far as to argue for alias docker="bash -c 'exit 1'"

@rbtr
Copy link
Contributor

rbtr commented Aug 13, 2024

For some context, I set the Makefile up to fall back to Docker so that it would work locally and wouldn't require everyone to install Buildah for development. The CI was always supposed to use the Containers tools.

Copy link

This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale due to inactivity. label Aug 28, 2024
@rbtr rbtr removed the stale Stale due to inactivity. label Aug 29, 2024
Copy link

This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale due to inactivity. label Sep 13, 2024
Copy link

Pull request closed due to inactivity.

@github-actions github-actions bot closed this Sep 20, 2024
@github-actions github-actions bot deleted the alew/placeholder-os-version branch September 20, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants