You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2021/04/01 18:48:00 UTC

[pulsar] branch master updated: Make java-test-image usable for testing in k8s (#10102)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9fd7b18  Make java-test-image usable for testing in k8s (#10102)
9fd7b18 is described below

commit 9fd7b18d5da1acc92ae0192ff42dcfee2098fdaf
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Apr 1 21:47:27 2021 +0300

    Make java-test-image usable for testing in k8s (#10102)
    
    ### Motivation
    
    When developing and testing Pulsar, it is very slow to build the pulsar-all image.
    The java-test-image can be built in less than 1.5 minutes on most laptops.
    When attempting to use the apachepulsar/java-test-image:latest with a local k8s setup (microk8s), it was found out that startup fails since the Pulsar helm charts expect that `nc` and `nslookup` are installed.
    
    ### Modifications
    
    Make `nc` and `nslookup` available to the java-test-image by adding netcat, dnsutils and iputils-ping to the packages to be installed. These packages are installed to the pulsar image and were missing from the java-test-image.
    This change makes java-test-image usable for k8s installations (for developing and testing Pulsar itself).
---
 tests/docker-images/java-test-image/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/docker-images/java-test-image/Dockerfile b/tests/docker-images/java-test-image/Dockerfile
index 01595ca..11ad282 100644
--- a/tests/docker-images/java-test-image/Dockerfile
+++ b/tests/docker-images/java-test-image/Dockerfile
@@ -45,7 +45,7 @@ RUN sed -i '1 s/.*/#!\/usr\/bin\/python3/' /pulsar/bin/watch-znode.py /pulsar/bi
 # required by gen-yml-from-env.py
 RUN apt-get install -y python-yaml
 
-RUN apt-get install -y supervisor procps curl less
+RUN apt-get install -y supervisor procps curl less netcat dnsutils iputils-ping
 
 
 RUN mkdir -p /var/log/pulsar \