Skip to content

Commit

Permalink
[docker] upgrade ant
Browse files Browse the repository at this point in the history
  • Loading branch information
rspilker committed Apr 1, 2021
1 parent 4637b9d commit a9adc23
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker/ant/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04 as downloader
FROM ubuntu:20.04 as downloader

ARG jdk=16
ADD provision/jdk/java-${jdk}.sh provision/jdk/java-${jdk}.sh
Expand All @@ -7,11 +7,11 @@ RUN provision/jdk/java-${jdk}.sh
ARG lombokjar=lombok.jar
ADD https://projectlombok.org/downloads/${lombokjar} /lombok.jar

ARG ant=1.10.7
ARG ant=1.10.9
ADD provision/ant/ant-${ant}.sh provision/ant/ant-${ant}.sh
RUN provision/ant/ant-${ant}.sh

FROM ubuntu:18.04
FROM ubuntu:20.04

COPY --from=downloader /usr/local/apache-ant/ /usr/local/apache-ant/
COPY --from=downloader /opt/jdk/ /opt/jdk/
Expand Down
5 changes: 3 additions & 2 deletions docker/ant/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

[_(general configuration and options)_](../readme.md)

### `ARG ant=1.10.7`
### `ARG ant=1.10.9`

The ant version to be used. Supported values:

- `1.10.7` (default)
- `1.10.9` (default)
- `1.10.7`
- `1.10.6`
- `1.10.1`

Expand Down
4 changes: 4 additions & 0 deletions docker/provision/ant/ant-1.10.9.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apt-get update && apt-get install -y wget
wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.9-bin.tar.gz -O ant.tar.gz
mkdir /usr/local/apache-ant/ && tar xvf ant.tar.gz -C /usr/local/apache-ant/
mv /usr/local/apache-ant/apache-ant-1.10.9 /usr/local/apache-ant/apache-ant

0 comments on commit a9adc23

Please sign in to comment.