Skip to content

Commit

Permalink
HDDS-11700. Use ozone-runner from GitHub in ozone image build
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Nov 14, 2024
1 parent 7ef3e0b commit 0e2d8a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ permissions:
contents: read
packages: write

env:
OZONE_RUNNER_IMAGE: ghcr.io/apache/ozone-runner

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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 }}
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM apache/ozone-runner:20240729-jdk17-1
ARG OZONE_RUNNER_IMAGE=apache/ozone-runner
FROM ${OZONE_RUNNER_IMAGE}:20241108-jdk17-1

ARG OZONE_URL=https://dlcdn.apache.org/ozone/1.4.0/ozone-1.4.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
Expand Down

0 comments on commit 0e2d8a0

Please sign in to comment.