viatcheslavmogilevsky commented on a change in pull request #10638:
URL: https://github.com/apache/druid/pull/10638#discussion_r536385655
##########
File path: examples/quickstart/tutorial/hadoop/docker/Dockerfile
##########
@@ -109,8 +103,14 @@ RUN sed -i "/^[^#]*UsePAM/ s/.*/#&/" /etc/ssh/sshd_config
RUN echo "UsePAM no" >> /etc/ssh/sshd_config
RUN echo "Port 2122" >> /etc/ssh/sshd_config
-RUN service sshd start && $HADOOP_PREFIX/etc/hadoop/hadoop-env.sh &&
$HADOOP_PREFIX/sbin/start-dfs.sh && $HADOOP_PREFIX/bin/hdfs dfs -mkdir -p
/user/root
-RUN service sshd start && $HADOOP_PREFIX/etc/hadoop/hadoop-env.sh &&
$HADOOP_PREFIX/sbin/start-dfs.sh && $HADOOP_PREFIX/bin/hdfs dfs -put
$HADOOP_PREFIX/etc/hadoop/ input
+# script for plain sshd start
+RUN echo -e \
+ '#!/bin/bash\n/usr/sbin/sshd\ntimeout 10 bash -c "until printf \"\"
2>>/dev/null >>/dev/tcp/127.0.0.1/2122; do sleep 0.5; done"' > \
+ /usr/local/bin/start_sshd && \
+ chmod a+x /usr/local/bin/start_sshd
Review comment:
I decided to create `/usr/local/bin/start_sshd` executable by `RUN`
command to make non-standard ssh port `2122` visible in that Dockerfile
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]