Skip to content

Commit

Permalink
Fix docker image build - add python3
Browse files Browse the repository at this point in the history
Building the docker image does not work anymore, see apache#2601

Add python3 to the list of available packages

cd docker
docker build --build-arg BK_VERSION=4.12.1 -t testbk .

Fixes apache#2601

Reviewers: Andrey Yegorov <None>

This closes apache#2609 from eolivelli/fix/docker-image-python3

(cherry picked from commit 503e0c2)
Signed-off-by: Andrey Yegorov <[email protected]>
  • Loading branch information
eolivelli committed Feb 18, 2021
1 parent 8756a7e commit 4d8a5ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-11
# Download Apache Bookkeeper, untar and clean up
RUN set -x \
&& adduser "${BK_USER}" \
&& yum install -y java-11-openjdk-devel wget bash python sudo\
&& yum install -y java-11-openjdk-devel wget bash python3 sudo\
&& mkdir -pv /opt \
&& cd /opt \
&& wget -q "${DISTRO_URL}" \
Expand All @@ -47,7 +47,8 @@ RUN set -x \
&& mv bookkeeper-server-${BK_VERSION}/ /opt/bookkeeper/ \
&& rm -rf "$DISTRO_NAME.tar.gz" "$DISTRO_NAME.tar.gz.asc" "$DISTRO_NAME.tar.gz.sha512" \
# install zookeeper shell
&& wget -q https://bootstrap.pypa.io/get-pip.py \
&& wget -q https://bootstrap.pypa.io/2.7/get-pip.py \
&& python --version \
&& python get-pip.py \
&& pip install zk-shell \
&& rm -rf get-pip.py \
Expand Down

0 comments on commit 4d8a5ef

Please sign in to comment.