HADOOP-18681. Upgrade hadoop3 docker scripts to use 3.3.5. (#5514). Contributed by Ayush Saxena.
Reviewed-by: Chris Nauroth <cnauroth@apache.org>
This commit is contained in:
parent
2acaaedb90
commit
734efb104c
|
@ -14,7 +14,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM apache/hadoop-runner
|
FROM apache/hadoop-runner
|
||||||
ARG HADOOP_URL=https://dlcdn.apache.org/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz
|
ARG HADOOP_URL=https://dlcdn.apache.org/hadoop/common/hadoop-3.3.5/hadoop-3.3.5.tar.gz
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN sudo rm -rf /opt/hadoop && curl -LSs -o hadoop.tar.gz $HADOOP_URL && tar zxf hadoop.tar.gz && rm hadoop.tar.gz && mv hadoop* hadoop && rm -rf /opt/hadoop/share/doc
|
RUN sudo rm -rf /opt/hadoop && curl -LSs -o hadoop.tar.gz $HADOOP_URL && tar zxf hadoop.tar.gz && rm hadoop.tar.gz && mv hadoop* hadoop && rm -rf /opt/hadoop/share/doc
|
||||||
WORKDIR /opt/hadoop
|
WORKDIR /opt/hadoop
|
||||||
|
|
6
build.sh
6
build.sh
|
@ -17,11 +17,11 @@
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
set -e
|
set -e
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
if [ ! -d "$DIR/build/apache-rat-0.13" ]; then
|
if [ ! -d "$DIR/build/apache-rat-0.15" ]; then
|
||||||
curl -LSs https://dlcdn.apache.org/creadur/apache-rat-0.13/apache-rat-0.13-bin.tar.gz -o "$DIR/build/apache-rat.tar.gz"
|
curl -LSs https://dlcdn.apache.org/creadur/apache-rat-0.15/apache-rat-0.15-bin.tar.gz -o "$DIR/build/apache-rat.tar.gz"
|
||||||
cd $DIR/build
|
cd $DIR/build
|
||||||
tar zvxf apache-rat.tar.gz
|
tar zvxf apache-rat.tar.gz
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
java -jar $DIR/build/apache-rat-0.13/apache-rat-0.13.jar $DIR -e public -e apache-rat-0.13 -e .git -e .gitignore
|
java -jar $DIR/build/apache-rat-0.15/apache-rat-0.15.jar $DIR -e public -e apache-rat-0.15 -e .git -e .gitignore
|
||||||
docker build -t apache/hadoop:3 .
|
docker build -t apache/hadoop:3 .
|
||||||
|
|
Loading…
Reference in New Issue