Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iynere committed Nov 1, 2018
1 parent 36caf6a commit 0830b36
Show file tree
Hide file tree
Showing 30 changed files with 1,024 additions and 18 deletions.
3 changes: 2 additions & 1 deletion android/images/api-23-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-23"
3 changes: 2 additions & 1 deletion android/images/api-23-ndk-r17b/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-23"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-23-node8-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-23"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-24-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-24"
3 changes: 2 additions & 1 deletion android/images/api-24-ndk-r17b/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-24"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-24-node8-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-24"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-25-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-25"
3 changes: 2 additions & 1 deletion android/images/api-25-ndk-r17b/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-25"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-25-node8-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-25"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-26-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-26"
3 changes: 2 additions & 1 deletion android/images/api-26-ndk-r17b/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-26"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-26-node8-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-26"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-27-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-27"
3 changes: 2 additions & 1 deletion android/images/api-27-ndk-r17b/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-27"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-27-node8-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-27"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-28-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-28"
3 changes: 2 additions & 1 deletion android/images/api-28-ndk-r17b/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-28"
Expand Down
3 changes: 2 additions & 1 deletion android/images/api-28-node8-alpha/Dockerfile
Expand Up @@ -175,7 +175,8 @@ RUN sdkmanager \
"build-tools;27.0.1" \
"build-tools;27.0.2" \
"build-tools;27.0.3" \
"build-tools;28.0.0"
"build-tools;28.0.0" \
"build-tools;28.0.3"

# API_LEVEL string gets replaced by m4
RUN sdkmanager "platforms;android-28"
Expand Down
92 changes: 92 additions & 0 deletions jruby/images/9-jdk/node-browsers-legacy/Dockerfile
@@ -0,0 +1,92 @@
###
### DO NOT MODIFY THIS FILE. THIS FILE HAS BEEN AUTOGENERATED
###

#
# DO NOT MODIFY THIS FILE. THIS FILE HAS BEEN AUTOGENERATED
#
FROM circleci/jruby:9-jdk-node

# install java 8
#
RUN if grep -q Debian /etc/os-release && grep -q jessie /etc/os-release; then \
echo "deb http://http.us.debian.org/debian/ jessie-backports main" | sudo tee -a /etc/apt/sources.list \
&& echo "deb-src http://http.us.debian.org/debian/ jessie-backports main" | sudo tee -a /etc/apt/sources.list \
&& sudo apt-get update; sudo apt-get install -y -t jessie-backports openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless \
; elif grep -q Ubuntu /etc/os-release && grep -q Trusty /etc/os-release; then \
echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list \
&& echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list \
&& sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key DA1A4A13543B466853BAF164EB9B1D8886F44E2A \
&& sudo apt-get update; sudo apt-get install -y openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless \
; else \
sudo apt-get update; sudo apt-get install -y openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless \
; fi

ENV OPENSSL_CONF /

## install phantomjs
#
RUN PHANTOMJS_URL="https://circle-downloads.s3.amazonaws.com/circleci-images/cache/linux-amd64/phantomjs-latest.tar.bz2" \
&& sudo apt-get install libfontconfig \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/phantomjs.tar.bz2 ${PHANTOMJS_URL} \
&& tar -x -C /tmp -f /tmp/phantomjs.tar.bz2 \
&& sudo mv /tmp/phantomjs-*-linux-x86_64/bin/phantomjs /usr/local/bin \
&& rm -rf /tmp/phantomjs.tar.bz2 /tmp/phantomjs-* \
&& phantomjs --version

# install firefox

# If you are upgrading to any version newer than 47.0.1, you must check the compatibility with
# selenium. See https://github.com/SeleniumHQ/selenium/issues/2559#issuecomment-237079591

RUN FIREFOX_URL="https://s3.amazonaws.com/circle-downloads/firefox-mozilla-build_47.0.1-0ubuntu1_amd64.deb" \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/firefox.deb $FIREFOX_URL \
&& echo 'ef016febe5ec4eaf7d455a34579834bcde7703cb0818c80044f4d148df8473bb /tmp/firefox.deb' | sha256sum -c \
&& sudo dpkg -i /tmp/firefox.deb || sudo apt-get -f install \
&& sudo apt-get install -y libgtk3.0-cil-dev libasound2 libasound2 libdbus-glib-1-2 libdbus-1-3 \
&& rm -rf /tmp/firefox.deb \
&& firefox --version

# install geckodriver—disabling this temporarily, we will likely want this code in the future, but until we're ready to upgrade our version of firefox to 53+, geckodriver wont' be compatible...

# RUN export GECKODRIVER_LATEST_RELEASE_URL=$(curl https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r ".assets[] | select(.name | test(\"linux64\")) | .browser_download_url") \
# && curl --silent --show-error --location --fail --retry 3 --output /tmp/geckodriver_linux64.tar.gz "$GECKODRIVER_LATEST_RELEASE_URL" \
# && cd /tmp \
# && tar xf geckodriver_linux64.tar.gz \
# && rm -rf geckodriver_linux64.tar.gz \
# && sudo mv geckodriver /usr/local/bin/geckodriver \
# && sudo chmod +x /usr/local/bin/geckodriver \
# && geckodriver --version

# install chrome

RUN curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& (sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb || sudo apt-get -fy install) \
&& rm -rf /tmp/google-chrome-stable_current_amd64.deb \
&& sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' \
"/opt/google/chrome/google-chrome" \
&& google-chrome --version

RUN export CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& cd /tmp \
&& unzip chromedriver_linux64.zip \
&& rm -rf chromedriver_linux64.zip \
&& sudo mv chromedriver /usr/local/bin/chromedriver \
&& sudo chmod +x /usr/local/bin/chromedriver \
&& chromedriver --version

# install libgconf-2-4 manually since chrome no longer pulls it in automatically
RUN sudo apt-get install -y libgconf-2-4

# start xvfb automatically to avoid needing to express in circle.yml
ENV DISPLAY :99
RUN printf '#!/bin/sh\nXvfb :99 -screen 0 1280x1024x24 &\nexec "$@"\n' > /tmp/entrypoint \
&& chmod +x /tmp/entrypoint \
&& sudo mv /tmp/entrypoint /docker-entrypoint.sh

# ensure that the build agent doesn't override the entrypoint
LABEL com.circleci.preserve-entrypoint=true

ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/sh"]
76 changes: 76 additions & 0 deletions jruby/images/9-jdk/node-browsers/Dockerfile
@@ -0,0 +1,76 @@
###
### DO NOT MODIFY THIS FILE. THIS FILE HAS BEEN AUTOGENERATED
###

#
# DO NOT MODIFY THIS FILE. THIS FILE HAS BEEN AUTOGENERATED
#
FROM circleci/jruby:9-jdk-node

# install java 8
#
RUN if grep -q Debian /etc/os-release && grep -q jessie /etc/os-release; then \
echo "deb http://http.us.debian.org/debian/ jessie-backports main" | sudo tee -a /etc/apt/sources.list \
&& echo "deb-src http://http.us.debian.org/debian/ jessie-backports main" | sudo tee -a /etc/apt/sources.list \
&& sudo apt-get update; sudo apt-get install -y -t jessie-backports openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless \
; elif grep -q Ubuntu /etc/os-release && grep -q Trusty /etc/os-release; then \
echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list \
&& echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list \
&& sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key DA1A4A13543B466853BAF164EB9B1D8886F44E2A \
&& sudo apt-get update; sudo apt-get install -y openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless \
; else \
sudo apt-get update; sudo apt-get install -y openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless \
; fi \
&& sudo apt-get install -y bzip2 libgconf-2-4 # for extracting firefox and running chrome, respectively

# install firefox
#
RUN FIREFOX_URL="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" \
&& ACTUAL_URL=$(curl -Ls -o /dev/null -w %{url_effective} $FIREFOX_URL) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/firefox.tar.bz2 $ACTUAL_URL \
&& sudo tar -xvjf /tmp/firefox.tar.bz2 -C /opt \
&& sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox \
&& sudo apt-get install -y libgtk3.0-cil-dev libasound2 libasound2 libdbus-glib-1-2 libdbus-1-3 \
&& rm -rf /tmp/firefox.* \
&& firefox --version

# install geckodriver

RUN export GECKODRIVER_LATEST_RELEASE_URL=$(curl https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r ".assets[] | select(.name | test(\"linux64\")) | .browser_download_url") \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/geckodriver_linux64.tar.gz "$GECKODRIVER_LATEST_RELEASE_URL" \
&& cd /tmp \
&& tar xf geckodriver_linux64.tar.gz \
&& rm -rf geckodriver_linux64.tar.gz \
&& sudo mv geckodriver /usr/local/bin/geckodriver \
&& sudo chmod +x /usr/local/bin/geckodriver \
&& geckodriver --version

# install chrome

RUN curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& (sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb || sudo apt-get -fy install) \
&& rm -rf /tmp/google-chrome-stable_current_amd64.deb \
&& sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' \
"/opt/google/chrome/google-chrome" \
&& google-chrome --version

RUN export CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& cd /tmp \
&& unzip chromedriver_linux64.zip \
&& rm -rf chromedriver_linux64.zip \
&& sudo mv chromedriver /usr/local/bin/chromedriver \
&& sudo chmod +x /usr/local/bin/chromedriver \
&& chromedriver --version

# start xvfb automatically to avoid needing to express in circle.yml
ENV DISPLAY :99
RUN printf '#!/bin/sh\nXvfb :99 -screen 0 1280x1024x24 &\nexec "$@"\n' > /tmp/entrypoint \
&& chmod +x /tmp/entrypoint \
&& sudo mv /tmp/entrypoint /docker-entrypoint.sh

# ensure that the build agent doesn't override the entrypoint
LABEL com.circleci.preserve-entrypoint=true

ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/sh"]

0 comments on commit 0830b36

Please sign in to comment.