This is an automated email from the ASF dual-hosted git repository.

ayegorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 503e0c2  Fix docker image build - add python3
503e0c2 is described below

commit 503e0c29b5acd99f0ec52449f412cb3dbeb7ae90
Author: Enrico Olivelli <[email protected]>
AuthorDate: Thu Feb 18 00:18:51 2021 +0100

    Fix docker image build - add python3
    
    ### Motivation
    Building the docker image does not work anymore, see #2601
    
    ### Changes
    Add python3 to the list of available packages
    
    ## How to verify
    cd docker
    docker build --build-arg BK_VERSION=4.12.1 -t testbk .
    
    Fixes #2601
    
    Reviewers: Andrey Yegorov <None>
    
    This closes #2609 from eolivelli/fix/docker-image-python3
---
 docker/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 5676852..a9baa5e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -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}" \
@@ -48,6 +48,7 @@ RUN set -x \
     && 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/2.7/get-pip.py \
+    && python --version \
     && python get-pip.py \
     && pip install zk-shell \
     && rm -rf get-pip.py \

Reply via email to