This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Add docker container generation scripts #5898
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
598deb8
Add docker generation scripts
liyuqian ed029d7
Update LICENSE
liyuqian 2edfe97
Add dart SDK
liyuqian c898cfe
Merge branch 'docker' of github.com:liyuqian/engine into docker
liyuqian d927c24
Update version
liyuqian d6b6a57
Use latest version
liyuqian cb31184
Remove unnecessary gclient sync
liyuqian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This directory includes scripts and tools for continuous integration tests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| FROM ubuntu:14.04 | ||
|
|
||
| ENV DEPOT_TOOLS_PATH $HOME/depot_tools | ||
| ENV ENGINE_PATH $HOME/engine | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y git wget curl unzip python lsb-release sudo | ||
|
|
||
| RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS_PATH | ||
| ENV PATH $PATH:$DEPOT_TOOLS_PATH | ||
|
|
||
| RUN mkdir --parents $ENGINE_PATH | ||
| WORKDIR $ENGINE_PATH | ||
| ADD engine_gclient .gclient | ||
| RUN gclient sync | ||
|
|
||
| WORKDIR $ENGINE_PATH/src | ||
| RUN gclient sync | ||
| RUN ./build/install-build-deps.sh --no-prompt | ||
| RUN ./build/install-build-deps-android.sh --no-prompt | ||
|
|
||
| WORKDIR $HOME/dart | ||
| RUN wget https://storage.googleapis.com/dart-archive/channels/dev/release/2.0.0-dev.63.0/sdk/dartsdk-linux-x64-release.zip | ||
| RUN unzip dartsdk-linux-x64-release.zip | ||
| ENV PATH $PATH:$HOME/dart/dart-sdk/bin | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| This directory includes scripts to build the docker container image used for | ||
| building flutter/engine in our CI system (currently [Cirrus](cirrus-ci.org)). | ||
|
|
||
| In order to run the scripts, you have to setup `docker` and `gcloud`. Please | ||
| refer to the [internal flutter team doc](go/flutter-team) for how to setup in a | ||
| Google internal environment. | ||
|
|
||
| After setup, | ||
| * edit `Dockerfile` to change how the container image is built. | ||
| * run `./build_docker.sh` to build the container image. | ||
| * run `./push_docker.sh` to push the image to google cloud registry. This will | ||
| affect our CI tests. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
|
|
||
| # pull to make sure we are not rebuilding for nothing | ||
| docker pull gcr.io/flutter-cirrus/build-engine-image:latest | ||
|
|
||
| docker build --tag gcr.io/flutter-cirrus/build-engine-image:latest . | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| solutions = [{ | ||
| "name" : "src/flutter", | ||
| "url" : "https://github.com/flutter/engine.git", | ||
| "deps_file" : "DEPS", | ||
| "managed" : False, | ||
| "safesync_url": "", | ||
| }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/bash | ||
|
|
||
| docker push gcr.io/flutter-cirrus/build-engine-image:latest | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need to run this again? If the .gclient and DEPS files didn't change, then running it again shouldn't do anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, @gspencergoog , thanks! I copied it from my other scripts which requires gclient sync because the content of engine/src/flutter is changed. Nothing changes here so there's no need to do gclient sync. Removed.