This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch ozone-1.0.0-rocky
in repository https://gitbox.apache.org/repos/asf/ozone-docker.git

commit 1a52c525f16fdaefd75ae34c51ec8e967f408235
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Nov 14 11:07:26 2024 +0100

    HDDS-11700. Use ozone-runner from GitHub in ozone image build (#33)
---
 .github/workflows/build.yaml | 4 ++++
 Dockerfile                   | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index a292f29..c79b265 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -38,6 +38,9 @@ permissions:
   contents: read
   packages: write
 
+env:
+  OZONE_RUNNER_IMAGE: ghcr.io/apache/ozone-runner
+
 jobs:
   build:
     runs-on: ubuntu-latest
@@ -87,6 +90,7 @@ jobs:
         if: ${{ steps.pull.outputs.success == 'false' }}
         uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
         with:
+          build-args: OZONE_RUNNER_IMAGE
           platforms: linux/amd64,linux/arm64
           push: ${{ github.event_name != 'pull_request' }}
           tags: ${{ steps.meta.outputs.tags }}
diff --git a/Dockerfile b/Dockerfile
index 1f83583..b295b85 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,10 +13,13 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM apache/ozone-runner:20240729-jdk11-1
+ARG OZONE_RUNNER_IMAGE=apache/ozone-runner
+FROM ${OZONE_RUNNER_IMAGE}:20241121-1-jdk11
+
 ARG 
OZONE_URL=https://archive.apache.org/dist/hadoop/ozone/ozone-1.0.0/hadoop-ozone-1.0.0.tar.gz
 WORKDIR /opt
 RUN sudo rm -rf /opt/hadoop && curl -LSs -o ozone.tar.gz $OZONE_URL && tar zxf 
ozone.tar.gz && rm ozone.tar.gz && mv ozone* hadoop
+
 WORKDIR /opt/hadoop
 COPY log4j.properties /opt/hadoop/etc/hadoop/log4j.properties
 COPY ozone-site.xml /opt/hadoop/etc/hadoop/ozone-site.xml


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to