Skip to content

Commit

Permalink
[testing] Make python3 the default python in java-test-image (#12130)
Browse files Browse the repository at this point in the history
- python3 should be default for the image to work
- this has been broken since the base image was changed to ubuntu:20.04
  • Loading branch information
lhotari committed Oct 1, 2021
1 parent 9d30914 commit 4ac228d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/docker-images/java-test-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,13 @@ RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-11-openjdk-amd64/conf/s

# /pulsar/bin/watch-znode.py requires python3-kazoo
# /pulsar/bin/pulsar-managed-ledger-admin requires python3-protobuf
RUN apt-get install -y python3-kazoo python3-protobuf
# use python3 for watch-znode.py and pulsar-managed-ledger-admin
RUN sed -i '1 s/.*/#!\/usr\/bin\/python3/' /pulsar/bin/watch-znode.py /pulsar/bin/pulsar-managed-ledger-admin

# required by gen-yml-from-env.py
RUN apt-get install -y python-yaml
# gen-yml-from-env.py requires python3-yaml
# make python3 the default
RUN apt-get install -y python3-kazoo python3-protobuf python3-yaml \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10

RUN apt-get install -y supervisor procps curl less netcat dnsutils iputils-ping


RUN mkdir -p /var/log/pulsar \
&& mkdir -p /var/run/supervisor/ \
&& mkdir -p /pulsar/ssl
Expand Down

0 comments on commit 4ac228d

Please sign in to comment.