Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
67789b3a
Unverified
Commit
67789b3a
authored
Feb 04, 2022
by
godofredoc
Committed by
GitHub
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dependabot for docker files. (#97556)
parent
c412d7b0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
92 deletions
+12
-92
dependabot.yml
.github/dependabot.yml
+12
-0
Dockerfile
dev/ci/docker_linux/Dockerfile
+0
-25
README.md
dev/ci/docker_linux/README.md
+0
-9
docker_attach.sh
dev/ci/docker_linux/docker_attach.sh
+0
-12
docker_build.sh
dev/ci/docker_linux/docker_build.sh
+0
-24
docker_login.sh
dev/ci/docker_linux/docker_login.sh
+0
-10
docker_push.sh
dev/ci/docker_linux/docker_push.sh
+0
-12
No files found.
.github/dependabot.yml
View file @
67789b3a
...
...
@@ -15,3 +15,15 @@ updates:
-
"
team"
-
"
team:
infra"
-
"
waiting
for
tree
to
go
green"
-
package-ecosystem
:
"
docker"
directory
:
"
/dev/ci/docker_linux"
schedule
:
interval
:
"
weekly"
reviewers
:
-
"
keyonghan"
-
"
yusufm"
-
"
fujino"
labels
:
-
"
team"
-
"
team:
infra"
-
"
waiting
for
tree
to
go
green"
dev/ci/docker_linux/Dockerfile
View file @
67789b3a
...
...
@@ -98,33 +98,11 @@ RUN touch ~/.android/repositories.cfg
# Add npm to path.
ENV
PATH="/usr/bin:${PATH}"
RUN
dpkg-query
-L
nodejs
# Install Firebase
# This is why we need nodejs installed.
RUN
/usr/bin/npm
--verbose
install
-g
firebase-tools@10.1.2
# Install golang more recent than in repo (necessary for dashing to build)
RUN
curl
'https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz'
|
tar
xvz
ENV
GOBINARY=/go/bin/go
# Install dashing
RUN
mkdir
-p
/opt/gopath/bin
ENV
GOPATH=/opt/gopath
ENV
PATH="${GOPATH}/bin:${PATH}"
RUN
$GOBINARY
get
-u
github.com/technosophos/dashing
# Set locale to en_US
RUN
locale-gen en_US
"en_US.UTF-8"
&&
DEBIAN_FRONTEND
=
noninteractive dpkg-reconfigure locales
ENV
LANG en_US.UTF-8
# Install fastlane via pinned Gemfile & Gemfile.lock
# Skip all the documentation (-N) since it's just on CI.
RUN
gem
install
bundler
-N
# Gemfile last edited 1/6/2019 (update to trigger a rebuild of Docker image)
COPY
ci/docker_linux/Gemfile /Gemfile
COPY
ci/docker_linux/Gemfile.lock /Gemfile.lock
# Install dependencies for desktop flutter run
RUN
apt-get
install
-y
--no-install-recommends
\
clang
\
...
...
@@ -137,6 +115,3 @@ RUN apt-get install -y --no-install-recommends \
xvfb
&&
\
apt-get upgrade
-y
--no-install-recommends
&&
\
apt-get clean
RUN
bundle config
set
system
'true'
&&
\
bundle
install
--system
dev/ci/docker_linux/README.md
View file @
67789b3a
...
...
@@ -4,12 +4,3 @@ building flutter/flutter in our CI system (currently [Cirrus](cirrus-ci.org)).
To run the scripts, you have to set up
`docker`
and
`gcloud`
. Please
refer to the
[
internal flutter team doc
](
go/flutter-team
)
for how to set up in a
Google internal environment.
To debug the image locally:
*
(Optional) edit the
`Dockerfile`
to change how the container image is built.
*
Run
`./docker_build.sh`
to build the container image (
`sudo`
permission is
required)
*
Run
`./docker_attach.sh`
to 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 any
`setup`
steps; e.g. the
container will not have the Flutter repo cloned yet).
dev/ci/docker_linux/docker_attach.sh
deleted
100755 → 0
View file @
c412d7b0
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
TAG
=
"
${
CIRRUS_TAG
:-
latest
}
"
# Starts an interactive docker container with a bash shell running in it, and
# attaches the user's shell to it.
sudo
docker run
--interactive
--tty
\
"gcr.io/flutter-cirrus/build-flutter-image:
$TAG
"
\
/bin/bash
dev/ci/docker_linux/docker_build.sh
deleted
100755 → 0
View file @
c412d7b0
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Capture the directory this script resides in
SCRIPT_DIRECTORY
=
"
$(
dirname
$(
readlink
-f
"
$0
"
))
"
# Set context to flutter/dev
CONTEXT
=
"
${
SCRIPT_DIRECTORY
}
/../.."
TAG
=
"
${
CIRRUS_TAG
:-
latest
}
"
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
# See https://docs.docker.com/engine/reference/commandline/tag/
TAG
=
${
TAG
/+/-
}
# pull to make sure we are not rebuilding for nothing
sudo
docker pull
"gcr.io/flutter-cirrus/build-flutter-image:
$TAG
"
sudo
docker build
"
$@
"
\
--tag
"gcr.io/flutter-cirrus/build-flutter-image:
$TAG
"
\
--file
"
$SCRIPT_DIRECTORY
/Dockerfile"
\
"
$CONTEXT
"
dev/ci/docker_linux/docker_login.sh
deleted
100755 → 0
View file @
c412d7b0
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if
[[
-n
"
$CIRRUS_CI
"
&&
-n
"
$GCLOUD_CREDENTIALS
"
]]
;
then
echo
"
$GCLOUD_CREDENTIALS
"
|
base64
--decode
| docker login
-u
_json_key
--password-stdin
https://gcr.io
else
gcloud auth print-access-token |
sudo
docker login
-u
oauth2accesstoken
--password-stdin
https://gcr.io
fi
dev/ci/docker_linux/docker_push.sh
deleted
100755 → 0
View file @
c412d7b0
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
TAG
=
"
${
CIRRUS_TAG
:-
latest
}
"
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
# See https://docs.docker.com/engine/reference/commandline/tag/
TAG
=
${
TAG
/+/-
}
sudo
docker push
"gcr.io/flutter-cirrus/build-flutter-image:
$TAG
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment