From ffbe9d49396afc1f4440f3b728dbdb4c27f9284d Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Fri, 26 Jan 2024 15:36:04 -0800 Subject: [PATCH] Delete `ci/docker`, assuming it is not used. (flutter/engine#50103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I tried grepping for `docker` and couldn't find anything relevant: ![Screenshot 2024-01-26 at 2 52 59 PM](https://github.com/flutter/engine/assets/168174/be75b61f-3c27-4475-8481-e096dff4197a) (Maybe this is "secretly" used by another repo, but there is no way for me to tell that) --- engine/src/flutter/ci/docker/build/Dockerfile | 102 ------------------ engine/src/flutter/ci/docker/build/README.md | 19 ---- .../flutter/ci/docker/build/build_docker.sh | 7 -- .../flutter/ci/docker/build/engine_gclient | 7 -- .../flutter/ci/docker/build/push_docker.sh | 4 - .../flutter/ci/docker/windows_build/README.md | 8 -- 6 files changed, 147 deletions(-) delete mode 100644 engine/src/flutter/ci/docker/build/Dockerfile delete mode 100644 engine/src/flutter/ci/docker/build/README.md delete mode 100755 engine/src/flutter/ci/docker/build/build_docker.sh delete mode 100644 engine/src/flutter/ci/docker/build/engine_gclient delete mode 100755 engine/src/flutter/ci/docker/build/push_docker.sh delete mode 100644 engine/src/flutter/ci/docker/windows_build/README.md diff --git a/engine/src/flutter/ci/docker/build/Dockerfile b/engine/src/flutter/ci/docker/build/Dockerfile deleted file mode 100644 index 81c23381dd..0000000000 --- a/engine/src/flutter/ci/docker/build/Dockerfile +++ /dev/null @@ -1,102 +0,0 @@ -FROM ubuntu:bionic@sha256:512274f1739676880585e70eea6a883db7b6d92841b02647b6c92b478356572c - -ENV DEPOT_TOOLS_PATH $HOME/depot_tools -ENV BUILDROOT_PATH $HOME/buildroot -ENV ENGINE_PATH $HOME/engine -ENV PATH $PATH:$DEPOT_TOOLS_PATH -ARG DEBIAN_FRONTEND=noninteractive - -# Notes: -# - libx11-dev is used by Flutter for desktop linux (see also install-build-deps-linux-desktop.sh) -# - chrome is used by Flutter for web. - -# Updates the distribution. -RUN apt-get update - -# Install generic tools. -RUN apt-get install -y ca-certificates gnupg wget curl lsb-release sudo apt-transport-https - -# Add additional repos. -# chrome stable -RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - -RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list -# gcloud sdk -RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \ - tee -a /etc/apt/sources.list.d/google-cloud-sdk.list -RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \ - apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - -RUN apt-get update - -# Install basic tools and libraries -RUN apt-get install -y \ - acpica-tools \ - autoconf \ - automake \ - bison \ - build-essential \ - dejagnu \ - dosfstools \ - flex \ - g++-multilib \ - gettext \ - git \ - gperf \ - groff \ - ifupdown \ - libblkid-dev \ - libc6-dev-i386 \ - libedit-dev \ - libfreetype6-dev \ - libglib2.0-dev \ - liblz4-tool \ - libncurses5-dev \ - libssl-dev \ - libtool \ - libxcursor-dev \ - libxinerama-dev \ - libxrandr-dev \ - libxxf86vm-dev \ - lsof \ - mtools \ - nasm \ - net-tools \ - pkg-config \ - python \ - python2.7-dev \ - tcpdump \ - texinfo \ - unzip \ - uuid-dev \ - vim \ - xz-utils \ - zip \ - zlib1g-dev - -# Install x/gui deps -RUN apt-get install -y \ - libegl1-mesa \ - libgles2-mesa-dev \ - libglu1-mesa-dev \ - libgtk-3-dev \ - libx11-dev \ - mesa-common-dev \ - xvfb - -# Install browsers -RUN apt-get install -y \ - google-chrome-stable - -# Install and config gcloud -RUN apt-get update && apt-get install -y google-cloud-sdk && \ - gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true - -# Clone depot_tools -RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS_PATH - -# Clone buildroot -RUN git clone https://github.com/flutter/buildroot.git $BUILDROOT_PATH - -# Make engine path and start change directory to buildroot. -RUN mkdir --parents $ENGINE_PATH && \ - cd $BUILDROOT_PATH diff --git a/engine/src/flutter/ci/docker/build/README.md b/engine/src/flutter/ci/docker/build/README.md deleted file mode 100644 index 02a7fb345e..0000000000 --- a/engine/src/flutter/ci/docker/build/README.md +++ /dev/null @@ -1,19 +0,0 @@ -This directory includes scripts to build the docker container image used for -building flutter/engine in our CI system (currently [Cirrus](cirrus-ci.org)). - -In order to run the scripts, you have to set up `docker` and `gcloud`. Please -refer to internal doc go/installdocker for how to set up `docker` on gLinux. - -Cirrus will build (and cache) a Docker image based on this `Dockerfile` for -Linux tasks using its -[Dockerfile as CI](https://cirrus-ci.org/guide/docker-builder-vm/) feature. -Any change to the `Dockerfile` will cause a new task to be triggered to build -and tag a new version of the Docker image which will be a dependency of the -other Linux tasks. This task will instantiate a new GCP VM based on the image -specified in the `.cirrus.yml` `builder_image_name` field. - -To test changes to the Linux `Dockerfile`, create a PR with the changes, and -Cirrus will attempt to build a new image. - -To debug locally, you can build an image with `./build_docker.sh`, but pushing -to the registry is no longer necessary. diff --git a/engine/src/flutter/ci/docker/build/build_docker.sh b/engine/src/flutter/ci/docker/build/build_docker.sh deleted file mode 100755 index 5eeb0fc83d..0000000000 --- a/engine/src/flutter/ci/docker/build/build_docker.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# pull to make sure we are not rebuilding for nothing -docker pull gcr.io/flutter-cirrus/build-engine-image:latest - -docker build --tag gcr.io/flutter-cirrus/build-engine-image:latest . - diff --git a/engine/src/flutter/ci/docker/build/engine_gclient b/engine/src/flutter/ci/docker/build/engine_gclient deleted file mode 100644 index d89fe98de2..0000000000 --- a/engine/src/flutter/ci/docker/build/engine_gclient +++ /dev/null @@ -1,7 +0,0 @@ -solutions = [{ - "name" : "src/flutter", - "url" : "https://github.com/flutter/engine.git", - "deps_file" : "DEPS", - "managed" : False, - "safesync_url": "", -}] diff --git a/engine/src/flutter/ci/docker/build/push_docker.sh b/engine/src/flutter/ci/docker/build/push_docker.sh deleted file mode 100755 index 80c79cb8d7..0000000000 --- a/engine/src/flutter/ci/docker/build/push_docker.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -docker push gcr.io/flutter-cirrus/build-engine-image:latest - diff --git a/engine/src/flutter/ci/docker/windows_build/README.md b/engine/src/flutter/ci/docker/windows_build/README.md deleted file mode 100644 index 30298defa3..0000000000 --- a/engine/src/flutter/ci/docker/windows_build/README.md +++ /dev/null @@ -1,8 +0,0 @@ -This directory should include scripts to build the docker container image used -for building flutter/engine in our CI system (currently [Cirrus](cirrus-ci.org)) -using Windows. - -So far we're still waiting GKE to have Kubernetes 1.14 and Windows containers. - -Before that, we use GCE Windows VMs for our CI tests. This directory includes -scripts for preparing that VM.