-
-
Save jeato/59260b27ac60c3930c2c to your computer and use it in GitHub Desktop.
selenium_grid/hub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
ENV VERSION 2.44.0 | |
EXPOSE 4444 | |
RUN apt-get update | |
RUN apt-get install -y software-properties-common | |
RUN add-apt-repository -y ppa:webupd8team/java | |
RUN apt-get update | |
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections | |
RUN apt-get install oracle-java7-installer -y | |
RUN wget http://selenium-release.storage.googleapis.com/${VERSION%.*}/selenium-server-standalone-${VERSION}.jar | |
ADD run.sh /var/run.sh | |
RUN chmod 755 /var/run.sh | |
CMD ["/bin/bash", "/var/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
java -jar selenium-server-standalone-${VERSION}.jar -role hub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment