Changes between Version 2 and Version 3 of Ticket #16857, comment 79
- Timestamp:
- 2021-04-29T22:53:48+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16857, comment 79
v2 v3 21 21 && tar xf apache-ant-$ANT_VERSION-bin.tar -C /usr/local/ant/ \ 22 22 && rm apache-ant-$ANT_VERSION-bin.tar \ 23 && apt-get remove -y curlxz-utils \23 && apt-get remove -y xz-utils \ 24 24 && apt-get clean 25 25 }}} 26 26 and were built with the following command: 27 27 {{{#!bash 28 $ VERSION=8# Replace withappropriate Java versions29 $ docker buildx build --push --platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x --build-arg JAVA_VERSION=${VERSION} --tag registry.gitlab.com/smocktaylor/josm/openjdk/ant:${VERSION} .28 $ docker_directory="docker_directory" # Replace with the path to where the docker file is saved 29 $ for VERSION in 8 11 16 17-ea; do docker buildx build --push --platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x --build-arg JAVA_VERSION=${VERSION} --tag registry.gitlab.com/smocktaylor/josm/openjdk/ant:${VERSION} --cache-to type=local,dest=.cache --cache-from type=local,src=.cache ${docker_directory}; done 30 30 }}} 31 31 Notes: To get all the archs for Java 8, the `FROM` line had to be modified to `adoptopenjdk:${JAVA_VERSION}-jdk-hotspot-bionic` (the latest `adoptopenjdk:8-jdk-hotspot` at build time didn't have arm support). 32 33 EDIT: Modify dockerfile to keep `curl` (needed for a CI job)


