Browse Source

Remove "fat" Dockerfile - it was used for building compose-web but it does not anymore

web_benchmark_investigation
Shagen Ogandzhanian 3 years ago
parent
commit
7cd130ba11
  1. 60
      ci/docker/compose-web/Dockerfile
  2. 17
      ci/docker/compose-web/bootstrap.sh
  3. 1
      ci/docker/compose-web/gradle.properties
  4. 79
      ci/docker/compose-web/init.gradle

60
ci/docker/compose-web/Dockerfile

@ -1,60 +0,0 @@
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=7.0.2
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
RUN ~/bin/repo init -u https://android.googlesource.com/platform/manifest \
-b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M
RUN ~/bin/repo sync -c --no-tags --no-clone-bundle -j4
RUN mkdir -p /mnt/agent
RUN ln -sf /androidx-main/tools/ /mnt/agent/tools
RUN ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts
RUN ln -sf /androidx-main/external /mnt/agent/external
RUN rm -rf /androidx-main/frameworks \
/androidx-main/prebuilts/jdk/jdk11/darwin-x86 \
/androidx-main/prebuilts/jdk/jdk8/darwin-x86
RUN apt-get clean

17
ci/docker/compose-web/bootstrap.sh

@ -1,17 +0,0 @@
#!/bin/bash
function bootstrap() {
cd /androidx-main
~/bin/repo init -u https://android.googlesource.com/platform/manifest \
-b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M
~/bin/repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)
mkdir -p /mnt/agent
ln -sf /androidx-main/tools/ /mnt/agent/tools
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts
ln -sf /androidx-main/external /mnt/agent/external
rm -rf /androidx-main/frameworks
}
bootstrap

1
ci/docker/compose-web/gradle.properties

@ -1 +0,0 @@
androidx.compose.multiplatformEnabled=true

79
ci/docker/compose-web/init.gradle

@ -1,79 +0,0 @@
initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies {
classpath "gradle.plugin.com.dorongold.plugins:task-tree:1.5"
}
}
rootProject {
apply plugin: com.dorongold.gradle.tasktree.TaskTreePlugin
}
settingsEvaluated { settings ->
settings.pluginManagement {
repositories.clear()
repositories {
mavenCentral()
gradlePluginPortal()
google()
maven {
url("https://packages.jetbrains.team/maven/p/ui/dev")
}
}
}
}
allprojects {
pluginManager.withPlugin("maven-publish") {
publishing {
repositories {
maven {
name "internal"
url "https://maven.pkg.jetbrains.space/public/p/compose/dev"
credentials {
username = project.hasProperty("COMPOSE_REPO_USERNAME") ? "$COMPOSE_REPO_USERNAME" : ""
password = project.hasProperty("COMPOSE_REPO_KEY") ? "$COMPOSE_REPO_KEY" : ""
}
}
}
}
}
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
google()
maven {
url("https://packages.jetbrains.team/maven/p/ui/dev")
}
maven {
url("https://dl.bintray.com/kotlin/kotlin-dev")
}
maven {
url("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
}
repositories {
mavenCentral()
gradlePluginPortal()
google()
jcenter()
maven {
url("https://packages.jetbrains.team/maven/p/ui/dev")
}
maven {
url("https://dl.bintray.com/kotlin/kotlin-dev")
}
maven {
url("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
}
Loading…
Cancel
Save