Skip to content

Instantly share code, notes, and snippets.

@jeato

jeato/Dockerfile Secret

Created February 23, 2015 22:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeato/59260b27ac60c3930c2c to your computer and use it in GitHub Desktop.
Save jeato/59260b27ac60c3930c2c to your computer and use it in GitHub Desktop.
selenium_grid/hub
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"]
#!/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