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 20, 2014
1 parent c902ae2 commit 41b5b4b
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 41b5b4b

Please sign in to comment.