Changes between Version 2 and Version 3 of Ticket #16857, comment 79


Ignore:
Timestamp:
2021-04-29T22:53:48+02:00 (5 years ago)
Author:
taylor.smock

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16857, comment 79

    v2 v3  
    2121      && tar xf apache-ant-$ANT_VERSION-bin.tar -C /usr/local/ant/ \
    2222      && rm apache-ant-$ANT_VERSION-bin.tar \
    23       && apt-get remove -y curl xz-utils \
     23      && apt-get remove -y xz-utils \
    2424      && apt-get clean
    2525}}}
    2626and were built with the following command:
    2727{{{#!bash
    28 $ VERSION=8 # Replace with appropriate Java versions
    29 $ 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
    3030}}}
    3131Notes: 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
     33EDIT: Modify dockerfile to keep `curl` (needed for a CI job)