Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flutter-base
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
flutter
flutter-base
Compare revisions
00742120e5c81d81b20989f376787109dd2ad817 to d5cdbade7331064029d03e4d75ba21e077fcecdc
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
docker-images/flutter/flutter-base
Select target project
No results found
d5cdbade7331064029d03e4d75ba21e077fcecdc
Select Git revision
Branches
arm64
master
Swap
Target
docker-images/flutter/flutter-base
Select target project
docker-images/flutter/flutter-base
1 result
00742120e5c81d81b20989f376787109dd2ad817
Select Git revision
Branches
arm64
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
disable multi platform image
· 4425afa9
Andri Joos
authored
3 months ago
4425afa9
add 3.27.0 version
· 985692a4
Andri Joos
authored
3 months ago
985692a4
add 3.27.1 version
· d5cdbade
Andri Joos
authored
3 months ago
d5cdbade
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+18
-1
18 additions, 1 deletion
.gitlab-ci.yml
.vscode/tasks.json
+3
-11
3 additions, 11 deletions
.vscode/tasks.json
Dockerfile
+17
-19
17 additions, 19 deletions
Dockerfile
with
38 additions
and
31 deletions
.gitlab-ci.yml
View file @
d5cdbade
...
...
@@ -8,12 +8,29 @@ variables:
.build_flutter_base
:
variables
:
DOCKER_BUILDX_PLATFORMS
:
linux/amd64
BUILD_ARGS
:
FLUTTER_VERSION=${VERSION}
"
3.27.1"
:
extends
:
-
.build_flutter_base
-
.build_image_job_template
variables
:
VERSION
:
3.27.1
IMAGE_NAME
:
${IMAGE_BASENAME}:${VERSION},${IMAGE_BASENAME}:3.27,${IMAGE_BASENAME}:3
"
3.27.0"
:
extends
:
-
.build_flutter_base
-
.build_image_job_template
variables
:
VERSION
:
3.27.0
IMAGE_NAME
:
${IMAGE_BASENAME}:${VERSION}
"
3.24.5"
:
extends
:
-
.build_flutter_base
-
.build_image_job_template
variables
:
VERSION
:
3.24.5
IMAGE_NAME
:
${IMAGE_BASENAME}:${VERSION},${IMAGE_BASENAME}:3.24
,${IMAGE_BASENAME}:3
IMAGE_NAME
:
${IMAGE_BASENAME}:${VERSION},${IMAGE_BASENAME}:3.24
This diff is collapsed.
Click to expand it.
.vscode/tasks.json
View file @
d5cdbade
...
...
@@ -3,16 +3,6 @@
//
for
the
documentation
about
the
tasks.json
format
"version"
:
"2.0.0"
,
"tasks"
:
[
{
"label"
:
"build"
,
"command"
:
"docker"
,
"args"
:
[
"build"
,
"--build-arg"
,
"FLUTTER_VERSION=${input:flutterVersion}"
,
"."
,
],
},
{
"label"
:
"buildx build"
,
"command"
:
"docker"
,
...
...
@@ -22,7 +12,7 @@
"--build-arg"
,
"FLUTTER_VERSION=${input:flutterVersion}"
,
"--platform"
,
"linux/
arm64,linux/
amd64"
,
"linux/amd64"
,
"."
,
],
},
...
...
@@ -33,6 +23,8 @@
"type"
:
"pickString"
,
"description"
:
"Choose flutter version"
,
"options"
:
[
"3.27.1"
,
"3.27.0"
,
"3.24.5"
,
],
},
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
View file @
d5cdbade
...
...
@@ -17,28 +17,26 @@ RUN apt update \
RUN
mkdir
-p
${
FLUTTER_DIR
}
RUN if
[
"
$(
uname
-m
)
"
=
"x86_64"
]
;
then
\
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_
${
FLUTTER_VERSION
}
-stable
.tar.xz
-O
${
FLUTTER_DOWNLOAD_FILE
}
\
&&
tar
-xf
${
FLUTTER_DOWNLOAD_FILE
}
--strip-components
=
1
--directory
$FLUTTER_DIR
;
\
fi
RUN
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_
${
FLUTTER_VERSION
}
-stable
.tar.xz
-O
${
FLUTTER_DOWNLOAD_FILE
}
\
&&
tar
-xf
${
FLUTTER_DOWNLOAD_FILE
}
--strip-components
=
1
--directory
$FLUTTER_DIR
;
# There is no official flutter arm64 release, so we must use the github repo
# Flutter on arch currently has warnings because channel and repository source are not set
RUN if
[
"
$(
uname
-m
)
"
=
"aarch64"
]
;
then
\
git clone
--depth
1 https://github.com/flutter/flutter.git
${
FLUTTER_DIR
}
\
&&
cd
${
FLUTTER_DIR
}
\
&&
git fetch origin tag
${
FLUTTER_VERSION
}
\
&&
git checkout tags/
${
FLUTTER_VERSION
}
\
&&
DART_SDK_PATH
=
"
${
FLUTTER_DIR
}
/bin/cache/dart-sdk"
\
&&
ENGINE_REALM
=
$(
cat
"
${
FLUTTER_DIR
}
/bin/internal/engine.realm"
|
tr
-d
'[:space:]'
)
\
&&
ENGINE_VERSION
=
$(
cat
"
${
FLUTTER_DIR
}
/bin/internal/engine.version"
)
\
&&
DART_ZIP_NAME
=
"dart-sdk-linux-arm64.zip"
\
&&
wget
"https://storage.googleapis.com/flutter_infra_release/flutter/
${
ENGINE_VERSION
}
/
${
DART_ZIP_NAME
}
"
-O
${
DART_ZIP_NAME
}
\
&&
unzip
-o
-q
"
${
DART_ZIP_NAME
}
"
-d
"
${
FLUTTER_DIR
}
/bin/cache"
\
&&
/usr/bin/find
"
${
DART_SDK_PATH
}
"
-type
d
-exec
chmod
755
{}
\;
\
&&
/usr/bin/find
"
${
DART_SDK_PATH
}
"
-type
f
-perm
/u+x
-exec
chmod
a+x,a+r
{}
\;
\
&&
echo
"
${
ENGINE_VERSION
}
"
>
"
${
FLUTTER_DIR
}
/bin/cache/engine-dart-sdk.stamp"
;
\
fi
#
RUN if [ "$(uname -m)" = "aarch64" ]; then \
#
git clone --depth 1 https://github.com/flutter/flutter.git ${FLUTTER_DIR} \
#
&& cd ${FLUTTER_DIR} \
#
&& git fetch origin tag ${FLUTTER_VERSION} \
#
&& git checkout tags/${FLUTTER_VERSION} \
#
&& DART_SDK_PATH="${FLUTTER_DIR}/bin/cache/dart-sdk" \
#
&& ENGINE_REALM=$(cat "${FLUTTER_DIR}/bin/internal/engine.realm" | tr -d '[:space:]') \
#
&& ENGINE_VERSION=$(cat "${FLUTTER_DIR}/bin/internal/engine.version") \
#
&& DART_ZIP_NAME="dart-sdk-linux-arm64.zip" \
#
&& wget "https://storage.googleapis.com/flutter_infra_release/flutter/${ENGINE_VERSION}/${DART_ZIP_NAME}" -O ${DART_ZIP_NAME} \
#
&& unzip -o -q "${DART_ZIP_NAME}" -d "${FLUTTER_DIR}/bin/cache" \
#
&& /usr/bin/find "${DART_SDK_PATH}" -type d -exec chmod 755 {} \; \
#
&& /usr/bin/find "${DART_SDK_PATH}" -type f -perm /u+x -exec chmod a+x,a+r {} \; \
#
&& echo "${ENGINE_VERSION}" > "${FLUTTER_DIR}/bin/cache/engine-dart-sdk.stamp"; \
#
fi
FROM
alpine:3.20.3
...
...
This diff is collapsed.
Click to expand it.