Skip to content

[GEODE-10637] Skip the native image when the branch has no Dockerfile - #8064

Merged
JinwooHwang merged 1 commit into
apache:developfrom
JinwooHwang:feature/GEODE-10637
Sep 8, 2026
Merged

[GEODE-10637] Skip the native image when the branch has no Dockerfile#8064
JinwooHwang merged 1 commit into
apache:developfrom
JinwooHwang:feature/GEODE-10637

Conversation

@JinwooHwang

Copy link
Copy Markdown
Contributor

geode-native moved its Dockerfiles into per-distro subdirectories (docker/ubuntu-20.04/, docker/rhel-8/ and so on) and removed docker/Dockerfile in February 2021. It is absent on every current branch and release tag.

promote_rc.sh still does cd ${GEODE_NATIVE}/docker and docker build ., which fails with no Dockerfile in that directory. The retry chain docker build . || docker build . || docker build . fails as a whole, and under set -e this aborts the promotion at the native image build, before the Geode image is pushed.

Run the native image build and push only when docker/Dockerfile is present, and print a message when it is skipped.

For all changes, please confirm:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
  • Has your PR been rebased against the latest commit within the target branch (typically develop)?
  • Is your initial contribution a single, squashed commit?
  • Does gradlew build run cleanly?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

geode-native keeps its Dockerfiles in per-distro subdirectories, so
docker/Dockerfile is absent and the build and push steps fail. Run them
only when that file is present.
@JinwooHwang
JinwooHwang merged commit e79edab into apache:develop Sep 8, 2026
14 of 15 checks passed
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