Skip to content

optionally prefer Dockerfile.alma8 and Dockerfile.alma9#36037

Merged
arnej27959 merged 1 commit intomasterfrom
arnej/allow-selecting-dockerfile
Feb 26, 2026
Merged

optionally prefer Dockerfile.alma8 and Dockerfile.alma9#36037
arnej27959 merged 1 commit intomasterfrom
arnej/allow-selecting-dockerfile

Conversation

@arnej27959
Copy link
Member

Add a select_dockerfile function to .buildkite/build-container.sh that picks an OS-specific Dockerfile when one is available. If a file named Dockerfile.${VESPA_BUILDOS_LABEL} exists in the build context (e.g. Dockerfile.alma8 or Dockerfile.alma9), it is used instead of the default Dockerfile. Both docker build invocations in the script now use this function, allowing OS-variant-specific image builds while keeping full backward compatibility with the existing default Dockerfile.

Add a select_dockerfile function to .buildkite/build-container.sh that
picks an OS-specific Dockerfile when one is available. If a file named
Dockerfile.${VESPA_BUILDOS_LABEL} exists in the build context (e.g.
Dockerfile.alma8 or Dockerfile.alma9), it is used instead of the default
Dockerfile. Both docker build invocations in the script now use this
function, allowing OS-variant-specific image builds while keeping full
backward compatibility with the existing default Dockerfile.
@arnej27959 arnej27959 requested a review from esolitos February 26, 2026 09:38
@arnej27959 arnej27959 merged commit 172aea8 into master Feb 26, 2026
4 checks passed
@arnej27959 arnej27959 deleted the arnej/allow-selecting-dockerfile branch February 26, 2026 11:23
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.

2 participants