mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
Improve Apache Ant download process. Switch to using curl so that we can retry the request if it initially fails.
(cherry picked from commit e236634a4c
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
4e59693da5
commit
aa027aefae
10
Dockerfile
10
Dockerfile
@@ -42,14 +42,12 @@ WORKDIR /dspace-src
|
|||||||
ENV ANT_VERSION=1.10.13
|
ENV ANT_VERSION=1.10.13
|
||||||
ENV ANT_HOME=/tmp/ant-$ANT_VERSION
|
ENV ANT_HOME=/tmp/ant-$ANT_VERSION
|
||||||
ENV PATH=$ANT_HOME/bin:$PATH
|
ENV PATH=$ANT_HOME/bin:$PATH
|
||||||
# Need wget to install ant
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends wget \
|
|
||||||
&& apt-get purge -y --auto-remove \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
# Download and install 'ant'
|
# Download and install 'ant'
|
||||||
RUN mkdir $ANT_HOME && \
|
RUN mkdir $ANT_HOME && \
|
||||||
wget -qO- "https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz" | tar -zx --strip-components=1 -C $ANT_HOME
|
curl --silent --show-error --location --fail --retry 5 --output /tmp/apache-ant.tar.gz \
|
||||||
|
https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
|
||||||
|
tar -zx --strip-components=1 -f /tmp/apache-ant.tar.gz -C $ANT_HOME && \
|
||||||
|
rm /tmp/apache-ant.tar.gz
|
||||||
# Run necessary 'ant' deploy scripts
|
# Run necessary 'ant' deploy scripts
|
||||||
RUN ant init_installation update_configs update_code update_webapps
|
RUN ant init_installation update_configs update_code update_webapps
|
||||||
|
|
||||||
|
@@ -38,14 +38,12 @@ WORKDIR /dspace-src
|
|||||||
ENV ANT_VERSION=1.10.13
|
ENV ANT_VERSION=1.10.13
|
||||||
ENV ANT_HOME=/tmp/ant-$ANT_VERSION
|
ENV ANT_HOME=/tmp/ant-$ANT_VERSION
|
||||||
ENV PATH=$ANT_HOME/bin:$PATH
|
ENV PATH=$ANT_HOME/bin:$PATH
|
||||||
# Need wget to install ant
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends wget \
|
|
||||||
&& apt-get purge -y --auto-remove \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
# Download and install 'ant'
|
# Download and install 'ant'
|
||||||
RUN mkdir $ANT_HOME && \
|
RUN mkdir $ANT_HOME && \
|
||||||
wget -qO- "https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz" | tar -zx --strip-components=1 -C $ANT_HOME
|
curl --silent --show-error --location --fail --retry 5 --output /tmp/apache-ant.tar.gz \
|
||||||
|
https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
|
||||||
|
tar -zx --strip-components=1 -f /tmp/apache-ant.tar.gz -C $ANT_HOME && \
|
||||||
|
rm /tmp/apache-ant.tar.gz
|
||||||
# Run necessary 'ant' deploy scripts
|
# Run necessary 'ant' deploy scripts
|
||||||
RUN ant init_installation update_configs update_code
|
RUN ant init_installation update_configs update_code
|
||||||
|
|
||||||
|
@@ -41,14 +41,12 @@ WORKDIR /dspace-src
|
|||||||
ENV ANT_VERSION=1.10.12
|
ENV ANT_VERSION=1.10.12
|
||||||
ENV ANT_HOME=/tmp/ant-$ANT_VERSION
|
ENV ANT_HOME=/tmp/ant-$ANT_VERSION
|
||||||
ENV PATH=$ANT_HOME/bin:$PATH
|
ENV PATH=$ANT_HOME/bin:$PATH
|
||||||
# Need wget to install ant
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends wget \
|
|
||||||
&& apt-get purge -y --auto-remove \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
# Download and install 'ant'
|
# Download and install 'ant'
|
||||||
RUN mkdir $ANT_HOME && \
|
RUN mkdir $ANT_HOME && \
|
||||||
wget -qO- "https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz" | tar -zx --strip-components=1 -C $ANT_HOME
|
curl --silent --show-error --location --fail --retry 5 --output /tmp/apache-ant.tar.gz \
|
||||||
|
https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
|
||||||
|
tar -zx --strip-components=1 -f /tmp/apache-ant.tar.gz -C $ANT_HOME && \
|
||||||
|
rm /tmp/apache-ant.tar.gz
|
||||||
# Run necessary 'ant' deploy scripts
|
# Run necessary 'ant' deploy scripts
|
||||||
RUN ant init_installation update_configs update_code update_webapps
|
RUN ant init_installation update_configs update_code update_webapps
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user