mobiledevops/flutter-sdk-image

By mobiledevops

Updated 17 days ago

Docker image to build a Flutter app *.apk. Can be used @ Travis CI, CircleCI or GitLab CI/CD ...

Image
Languages & frameworks
Integration & delivery
32

10K+

mobiledevops/flutter-sdk-image repository overview

Docker image for Flutter SDK

Docker image to build a Flutter app *.apk for Android. The latest image contains always the latest stable version of the Flutter SDK: https://flutter.dev/docs/development/tools/sdk/releases?tab=linux

Currently:

VersionRefRelease Date
3.16.3b0366e006.12.2023

Releases

TagFlutter VersionFlutter Channel
3.16.33.16.3stable
3.10.33.10.3stable
3.10.23.10.2stable
3.10.13.10.1stable
3.10.03.10.0stable
3.7.123.7.12stable
3.7.113.7.11stable
3.7.103.7.10stable
3.7.93.7.9stable
3.7.83.7.8stable
3.7.73.7.7stable
2.0.12.0.1stable
1.22.51.22.5stable
1.22.41.22.4stable
1.22.31.22.3stable
1.22.21.22.2stable
1.22.11.22.1stable
1.22.01.22.0stable
1.20.41.20.4stable
1.20.31.20.3stable
1.20.21.20.2stable
1.20.11.20.1stable
1.20.01.20.0stable
1.17.51.17.5stable
1.17.41.17.4stable
1.17.31.17.3stable
1.17.21.17.2stable
1.17.11.17.1stable
1.17.01.17.0stable
v1.12.13-hotfix.9v1.12.13+hotfix.9stable
v1.12.13-hotfix.8v1.12.13+hotfix.8stable
v1.12.13-hotfix.7v1.12.13+hotfix.7stable
v1.12.13-hotfix.5v1.12.13+hotfix.5stable
v1.9.1-hotfix.6v1.9.1+hotfix.6stable
v1.9.1-hotfix.5v1.9.1+hotfix.5stable
v1.9.1-hotfix.4v1.9.1+hotfix.4stable
v1.9.1-hotfix.2v1.9.1+hotfix.2stable
v1.7.8-hotfix.4v1.7.8+hotfix.4stable

Usage

The image can be used on different cloud build services or own hosted pipeline solutions like Travis CI, CircleCI or GitLab CI/CD.

CircleCI

CircleCI supports the direct specification of a Docker image and checks out the source code in it: https://circleci.com/docs/2.0/circleci-images/

Therefore you execute your CI script directly in the container.

Example:

# .circleci/config.yml
version: 2.1
jobs:
  build:
    docker: 
      - image: mobiledevops/flutter-sdk-image:3.16.3
    steps:
      - checkout
      - run:
          name: Flutter Build
          command: flutter build apk

Example Project: https://github.com/mobiledevops/flutter-ci-demo

Travis CI

To use a Docker container on Travis CI, you have to pull, run and execute it manually because Travis CI has no Docker executor: https://docs.travis-ci.com/user/docker/

And to prevent to do a new checkout of the source code in the Docker image, you can copy the code into the container via tar (see https://docs.docker.com/engine/reference/commandline/cp/). To execute your CI script, use docker exec with the container name.

Example:

# .travis.yml
dist: bionic

services:
  - docker

env:
  - DOCKER_IMAGE=mobiledevops/flutter-sdk-image:3.16.3

before_install:
  - docker pull $DOCKER_IMAGE
  - docker run --name android_ci -t -d $DOCKER_IMAGE /bin/sh
  - tar Ccf . - . | docker exec -i android_ci tar Cxf /home/mobiledevops/app -

script:
  - docker exec android_ci flutter build apk

Example Project: https://github.com/mobiledevops/flutter-ci-demo

GitLab CI

GitLab CI/CD supports to run jobs on provided Docker images: https://docs.gitlab.com/runner/executors/docker.html

Therefore you execute your CI script directly in the container.

Example:

# .gitlab-ci.yml
image: mobiledevops/flutter-sdk-image:3.16.3

stages:
    - build

release_build:
    stage: build
    tags:
      - shared
    script:
        - flutter build apk

Example Project: https://gitlab.com/mobiledevops/flutter-ci-demo


Contributing

Code of Conduct

Tag summary

Content type

Image

Digest

sha256:56af91705

Size

3.6 GB

Last updated

17 days ago

docker pull mobiledevops/flutter-sdk-image:3.44.4