commit | 6551048d2b12294161e0f01ee9246d50524e6bbf | [log] [tgz] |
---|---|---|
author | Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com> | Sat Mar 16 15:03:51 2024 +0100 |
committer | GitHub <noreply@github.com> | Sat Mar 16 15:03:51 2024 +0100 |
tree | 5a4b6dbb557d9340fd14f3f54bd2ab2276d4ea1c | |
parent | f3534aabde5f11ccbe8db1f9429356951a4cbdcb [diff] |
HDDS-8247. Bump JDK to 17.0.2 (#22)
This is the base image to run Apache Hadoop Ozone in docker containers. This is only for test/develop and not for production.
The container doesn't include any Ozone specific jar files or release artifacts just an empty environment which includes all the specific tools to run and test Apache Ozone inside containers.
The image is available as apache/ozone-runner. Build is managed by Docker Hub.
To build the image, please use:
DOCKER_BUILDKIT=1 docker build -t apache/ozone-runner:dev .
To test it, build Apache Ozone:
mvn clean verify -DskipTests -Dskip.npx -DskipShade -Ddocker.ozone-runner.version=dev
And start the compose cluster:
cd hadoop-ozone/dist/target/ozone-*/compose/ozone docker-compose up -d
*After merging PR, a new tag should pushed to the repository to create a new image. Use the convention: YYYYMMDD-N
for tags where N is a daily counter (see the existing tags as an example).
After tag is published (and built by Docker Hub), the used runner version can be updated by modifying the docker.ozone-runner.version
version in hadoop-ozone/dist/pom.xml
To build images with multiple architectures, use docker buildx
.
For example, to build images for both linux/amd64
and linux/arm64
, run:
docker buildx build --platform linux/amd64,linux/arm64 -t apache/ozone-runner:dev . --progress=plain
It might be slow when building the non-native architecture image due to QEMU emulation.