From ea924633f6f6445da1d69ccf67e234f71e32bbf0 Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Wed, 19 Nov 2014 14:59:36 -0700 Subject: [PATCH] Only expose port 4444 in the Hub container The node images shouldn't be exposing the 4444 port since they don't even listen on that port. Part of #3 --- Base/Dockerfile | 2 -- Hub/Dockerfile | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Base/Dockerfile b/Base/Dockerfile index c2edf79055..fa7298e39c 100644 --- a/Base/Dockerfile +++ b/Base/Dockerfile @@ -31,5 +31,3 @@ RUN mkdir -p /opt/selenium \ RUN sudo useradd seluser --shell /bin/bash --create-home \ && sudo usermod -a -G sudo seluser \ && echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers - -EXPOSE 4444 diff --git a/Hub/Dockerfile b/Hub/Dockerfile index 795d331f0b..c981b26d19 100644 --- a/Hub/Dockerfile +++ b/Hub/Dockerfile @@ -1,6 +1,8 @@ FROM selenium/base:2.44.0 MAINTAINER Selenium +EXPOSE 4444 + USER seluser CMD java -jar /opt/selenium/selenium-server-standalone.jar -port 4444 -role hub