kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vvcep...@apache.org
Subject [kafka] 03/03: KAFKA-8499: ensure java is in PATH for ducker system tests (#6898)
Date Mon, 01 Jun 2020 20:32:42 GMT
This is an automated email from the ASF dual-hosted git repository.

vvcephei pushed a commit to branch 1.1
in repository https://gitbox.apache.org/repos/asf/kafka.git

commit 9b233fc63f5648ae49ce48058949cd82f7520e9e
Author: Lucas Bradstreet <lucas@confluent.io>
AuthorDate: Fri Jun 7 14:23:49 2019 -0700

    KAFKA-8499: ensure java is in PATH for ducker system tests (#6898)
    
    Reviewers: Colin P. McCabe <cmccabe@apache.org>
---
 tests/docker/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/docker/Dockerfile b/tests/docker/Dockerfile
index 3d3ae6c..c243465 100644
--- a/tests/docker/Dockerfile
+++ b/tests/docker/Dockerfile
@@ -37,6 +37,7 @@ RUN pip install -U pip==9.0.3 setuptools && pip install --upgrade
cffi virtualen
 # Set up ssh
 COPY ./ssh-config /root/.ssh/config
 RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && cp -f /root/.ssh/id_rsa.pub
/root/.ssh/authorized_keys
+RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config
 
 # Install binary test dependencies.
 # we use the same versions as in vagrant/base.sh
@@ -59,7 +60,7 @@ RUN apt-get install fuse
 RUN cd /opt && git clone -q  https://github.com/confluentinc/kibosh.git &&
cd "/opt/kibosh" && git reset --hard $KIBOSH_VERSION && mkdir "/opt/kibosh/build"
&& cd "/opt/kibosh/build" && ../configure && make -j 2
 
 # Set up the ducker user.
-RUN useradd -ms /bin/bash ducker && mkdir -p /home/ducker/ && rsync -aiq
/root/.ssh/ /home/ducker/.ssh && chown -R ducker /home/ducker/ /mnt/ && echo
'ducker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
+RUN useradd -ms /bin/bash ducker && mkdir -p /home/ducker/ && rsync -aiq
/root/.ssh/ /home/ducker/.ssh && chown -R ducker /home/ducker/ /mnt/ && echo
"PATH=$(runuser -l ducker -c 'echo $PATH'):$JAVA_HOME/bin" >> /home/ducker/.ssh/environment
&& echo 'PATH=$PATH:'"$JAVA_HOME/bin" >> /home/ducker/.profile && echo
'ducker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
 USER ducker
 
 CMD sudo service ssh start && tail -f /dev/null


Mime
View raw message