Skip to content
1 change: 1 addition & 0 deletions teradatalabs/mapr52-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN yum update -y \
# CONFIGURE SSH
&& chkconfig sshd on \
&& grep -rl '#Port 22' /etc/ssh/sshd_config | xargs sed -i 's/#Port 22/Port 22/g' \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is that needed? The other containers expose sshd as well and they don't seem to be sed-ing the 22 Port in config anywhere AFAIR?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not working without that , other containers will all have same problems when some one will ssh hadoop-master from outside.

&& service sshd start \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would that be needed? This is during image build, the newly started container will have sshd down anyway (except for cases when supervisor.d will spin it up)


# INSTALL MAPR
&& yum install -y mapr-fileserver mapr-nfs mapr-nodemanager mapr-cldb \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squash into a single yum install invocation

Expand Down