From 83352b3499af062115f98a484f7d4bafb9d442fa Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 12 May 2021 20:06:39 +0200 Subject: [PATCH] Introduce separate Docker image for build without androidx setup The idea is to setup android in runtime after all --- ci/docker/compose-web/Dockerfile-Basic | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ci/docker/compose-web/Dockerfile-Basic diff --git a/ci/docker/compose-web/Dockerfile-Basic b/ci/docker/compose-web/Dockerfile-Basic new file mode 100644 index 0000000000..b78cc17a95 --- /dev/null +++ b/ci/docker/compose-web/Dockerfile-Basic @@ -0,0 +1,46 @@ +FROM ubuntu:20.10 + +SHELL ["/bin/bash", "-c"] + +RUN echo "dash dash/sh boolean false" | debconf-set-selections +RUN dpkg-reconfigure -f noninteractive dash + +RUN dpkg --add-architecture i386 && apt-get update -yqq && apt-get install -y \ + firefox \ + git \ + gnupg2 \ + openjdk-11-jdk \ + python3 \ + python-is-python3 \ + unzip \ + wget + + +RUN export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE) \ + && wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip -P ~/tmp +RUN unzip -d /usr/local/bin ~/tmp/chromedriver_linux64.zip && rm ~/tmp/chromedriver_linux64.zip + +ARG GRADLE_VERSION=6.8.3 +RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp +RUN unzip -d /opt/gradle /tmp/gradle-${GRADLE_VERSION}-bin.zip +ENV GRADLE_HOME=/opt/gradle/gradle-${GRADLE_VERSION} +ENV PATH=$GRADLE_HOME/bin:$PATH + +ARG CHROME_VERSION="google-chrome-stable" +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - +RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ + && apt-get update -yqq && apt-get install -y \ + ${CHROME_VERSION:-google-chrome-stable} + +COPY chrome-no-sandbox /usr/bin/chrome-no-sandbox +COPY gradle.properties /root/.gradle/gradle.properties +COPY init.gradle /root/.gradle/init.gradle +RUN chmod u+x /usr/bin/chrome-no-sandbox + +RUN mkdir ~/bin +ENV PATH=~/bin:$PATH + +RUN wget -P ~/bin https://storage.googleapis.com/git-repo-downloads/repo +RUN chmod a+x ~/bin/repo +RUN mkdir androidx-main +WORKDIR androidx-main