Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flutter-linux
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker images
devcontainer
flutter
flutter-linux
Commits
4669d2b5
Commit
4669d2b5
authored
3 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
make image multi version capable
parent
b8726960
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+16
-7
16 additions, 7 deletions
.gitlab-ci.yml
.vscode/tasks.json
+20
-5
20 additions, 5 deletions
.vscode/tasks.json
Dockerfile
+12
-2
12 additions, 2 deletions
Dockerfile
with
48 additions
and
14 deletions
.gitlab-ci.yml
+
16
−
7
View file @
4669d2b5
include
:
-
project
:
docker-images/templates
ref
:
master
file
:
d
evcontainer_images
.gitlab-ci.yml
file
:
d
ocker_hub
.gitlab-ci.yml
build
:
extends
:
.build_image_job_template
variables
:
TAG_SUFFIX
:
linux
IMAGE_BASENAME
:
${IMAGE_PREFIX}/devcontainer-flutter
DOCKER_BUILDX_PLATFORMS
:
linux/amd64
.build_flutter_linux
:
variables
:
BUILD_ARGS
:
FLUTTER_VERSION=${VERSION}
"
3.24.5"
:
extends
:
-
.build_flutter_linux
-
.build_image_job_template
variables
:
DOCKER_BUILDX_PLATFORMS
:
linux/amd64
TAG_SUFFIX
:
linux
IMAGE_BASENAME
:
${IMAGE_PREFIX}/devcontainer-flutter
IMAGE_NAME
:
${IMAGE_BASENAME}:3.24.5-${TAG_SUFFIX},${IMAGE_BASENAME}:3.24-${TAG_SUFFIX},${IMAGE_BASENAME}:3-${TAG_SUFFIX}
VERSION
:
3.24.5
IMAGE_NAME
:
${IMAGE_BASENAME}:${VERSION}-${TAG_SUFFIX},${IMAGE_BASENAME}:3.24-${TAG_SUFFIX},${IMAGE_BASENAME}:3-${TAG_SUFFIX}
This diff is collapsed.
Click to expand it.
.vscode/tasks.json
+
20
−
5
View file @
4669d2b5
...
...
@@ -4,12 +4,27 @@
"version"
:
"2.0.0"
,
"tasks"
:
[
{
"label"
:
"
docker
build"
,
"label"
:
"
buildx
build"
,
"command"
:
"docker"
,
"args"
:
[
"buildx"
,
"build"
,
"."
]
}
]
"--platform"
,
"linux/amd64"
,
"--build-arg"
,
"FLUTTER_VERSION=${input:flutterVersion}"
,
"."
,
],
},
],
"inputs"
:
[
{
"id"
:
"flutterVersion"
,
"type"
:
"pickString"
,
"description"
:
"Choose flutter version"
,
"options"
:
[
"3.24.5"
,
],
},
],
}
This diff is collapsed.
Click to expand it.
Dockerfile
+
12
−
2
View file @
4669d2b5
FROM
andrijoos/flutter:3.24.5-linux
ARG
FLUTTER_VERSION="3.24.5"
FROM
andrijoos/flutter:${FLUTTER_VERSION}-linux
ARG
USERNAME="ubuntu"
ARG
WORKSPACE="/workdir"
...
...
@@ -12,7 +14,15 @@ USER ${USERNAME}
WORKDIR
${WORKSPACE}
RUN
dart
--disable-analytics
\
&&
flutter config
--no-analytics
\
&&
flutter config
\
--no-analytics
\
--no-enable-web
\
--no-enable-linux-desktop
\
--no-enable-macos-desktop
\
--no-enable-windows-desktop
\
--no-enable-ios
\
--no-enable-fuchsia
\
--enable-android
\
&&
flutter precache
--universal
--linux
# Build demo project/pipeline
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment