Skip to content

Commit

Permalink
Only expose port 4444 in the Hub container
Browse files Browse the repository at this point in the history
The node images shouldn't be exposing the 4444 port since they don't
even listen on that port.

Part of #3
  • Loading branch information
mtscout6 committed Nov 19, 2014
1 parent 2e3d38c commit ea92463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions Hub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM selenium/base:2.44.0
MAINTAINER Selenium <[email protected]>

EXPOSE 4444

USER seluser

CMD java -jar /opt/selenium/selenium-server-standalone.jar -port 4444 -role hub

0 comments on commit ea92463

Please sign in to comment.