Skip to content

Commit

Permalink
Fix pulsar build image with maven 3.6.1 (apache#5886)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahmed-se authored Dec 18, 2019
1 parent 65cdc90 commit 3a2122b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN mkdir /pulsar
ADD protobuf.patch /pulsar

RUN apt-get update && \
apt-get install -y maven tig g++ cmake libssl-dev libcurl4-openssl-dev \
apt-get install -y tig g++ cmake libssl-dev libcurl4-openssl-dev \
liblog4cxx-dev libprotobuf-dev libboost-all-dev google-mock libgtest-dev \
libjsoncpp-dev libxml2-utils protobuf-compiler wget \
curl doxygen openjdk-8-jdk-headless clang-format-5.0 \
Expand Down Expand Up @@ -78,3 +78,16 @@ RUN git clone https://github.com/google/protobuf.git /pulsar/protobuf && \
autoreconf --install && \
./configure && \
make

# Installation
ARG MAVEN_FILENAME="apache-maven-${MAVEN_VERSION}-bin.tar.gz"
ARG MAVEN_URL="http://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/${MAVEN_FILENAME}"
ARG MAVEN_TMP="/tmp/${MAVEN_FILENAME}"
RUN wget --no-verbose -O ${MAVEN_TMP} ${MAVEN_URL}

# Cleanup
RUN tar xzf ${MAVEN_TMP} -C /opt/ \
&& ln -s /opt/apache-maven-${MAVEN_VERSION} ${MAVEN_HOME} \
&& ln -s ${MAVEN_HOME}/bin/mvn /usr/local/bin

RUN unset MAVEN_VERSION

0 comments on commit 3a2122b

Please sign in to comment.