mirror of
https://github.com/flutter/flutter.git
synced 2026-01-18 03:36:10 +08:00
This change updates the Dockerfile for Cirrus builds: - Switch to a newer stable Debian build (bullseye instead of stretch) - Eliminates the very old (10) nodejs install in favor of the npm package - Installs OpenJDK so that Android SDK manager can run on bullseye - Installs the prerequisites for Linux desktop flutter run. The motivation for this change was to include the dependencies for Linux desktop flutter run so that I can run tests that use desktop Flutter apps, but that needs cmake 3.10 or later, and stretch doesn't have a cmake that new. Of course, there's also no openjdk-8-jre for bullseye, so I used OpenJDK from JFrog instead.
This directory includes scripts to build the docker container image used for building flutter/flutter in our CI system (currently Cirrus).
To run the scripts, you have to set up docker and gcloud. Please
refer to the internal flutter team doc for how to set up in a
Google internal environment.
To debug the image locally:
- (Optional) edit the
Dockerfileto change how the container image is built. - Run
./docker_build.shto build the container image (sudopermission is required) - Run
./docker_attach.shto start a container from the image and attach to its internal bash shell. From here, you can invoke shell commands from the.cirrus.yml(you will have to manually run anysetupsteps; e.g. the container will not have the Flutter repo cloned yet).