|
|
|
@@ -23,7 +23,7 @@ The images includes the minimum tools to run Flutter and build apps. The version
|
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
* Installed Flutter SDK 3.35.2.
|
|
|
|
|
* Installed Flutter SDK 3.35.3.
|
|
|
|
|
* Analytics disabled by default, opt-in if `ENABLE_ANALYTICS` environment variable is passed when running the container.
|
|
|
|
|
* Rootless user `flutter:flutter`, with permissions to run on Github workflows and GitLab CI.
|
|
|
|
|
* Cached Fastlane gem 2.228.0.
|
|
|
|
@@ -40,15 +40,15 @@ Predownloaded SDKs and tools in Android:
|
|
|
|
|
|
|
|
|
|
| Registry | flutter-android |
|
|
|
|
|
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
| Docker Hub | [gmeligio/flutter-android:3.35.2](https://hub.docker.com/r/gmeligio/flutter-android) |
|
|
|
|
|
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.35.2](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
|
|
|
|
|
| Quay | [quay.io/gmeligio/flutter-android:3.35.2](https://quay.io/repository/gmeligio/flutter-android) |
|
|
|
|
|
| Docker Hub | [gmeligio/flutter-android:3.35.3](https://hub.docker.com/r/gmeligio/flutter-android) |
|
|
|
|
|
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.35.3](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
|
|
|
|
|
| Quay | [quay.io/gmeligio/flutter-android:3.35.3](https://quay.io/repository/gmeligio/flutter-android) |
|
|
|
|
|
|
|
|
|
|
On the terminal:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# From GitHub Container Registry
|
|
|
|
|
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.35.2 bash
|
|
|
|
|
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.35.3 bash
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
On a workflow in GitHub Actions:
|
|
|
|
@@ -58,7 +58,7 @@ jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
container:
|
|
|
|
|
image: ghcr.io/gmeligio/flutter-android:3.35.2
|
|
|
|
|
image: ghcr.io/gmeligio/flutter-android:3.35.3
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
@@ -70,7 +70,7 @@ On a `.gitlab-ci.yml` in GitLab CI:
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
build:
|
|
|
|
|
image: ghcr.io/gmeligio/flutter-android:3.35.2
|
|
|
|
|
image: ghcr.io/gmeligio/flutter-android:3.35.3
|
|
|
|
|
script:
|
|
|
|
|
- flutter build apk
|
|
|
|
|
```
|
|
|
|
@@ -91,20 +91,20 @@ bundle exec fastlane
|
|
|
|
|
|
|
|
|
|
Every new tag on the flutter stable channel gets built. The tag is composed of the Flutter version used to build the image:
|
|
|
|
|
|
|
|
|
|
* Docker image: gmeligio/flutter-android:3.35.2
|
|
|
|
|
* Flutter version: 3.35.2
|
|
|
|
|
* Docker image: gmeligio/flutter-android:3.35.3
|
|
|
|
|
* Flutter version: 3.35.3
|
|
|
|
|
|
|
|
|
|
## Building Locally
|
|
|
|
|
|
|
|
|
|
The android.Dockerfile expects a few arguments:
|
|
|
|
|
|
|
|
|
|
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.35.2
|
|
|
|
|
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.35.3
|
|
|
|
|
* `android_build_tools_version <string>`: The version of the Android SDK Build Tools to install. Example: 35.0.0
|
|
|
|
|
* `android_platform_versions <list>`: The versions of the Android SDK Platforms to install, separated by spaces. Example: 36
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Android
|
|
|
|
|
docker build --target android --build-arg flutter_version=3.35.2 --build-arg fastlane_version=2.228.0 --build-arg android_build_tools_version=35.0.0 --build-arg android_platform_versions="36" -t android-test .
|
|
|
|
|
docker build --target android --build-arg flutter_version=3.35.3 --build-arg fastlane_version=2.228.0 --build-arg android_build_tools_version=35.0.0 --build-arg android_platform_versions="36" -t android-test .
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Roadmap
|
|
|
|
|