forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 17
[docker] Support host build #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
WonyoungChoi
merged 2 commits into
flutter-tizen:flutter-2.2.1-tizen
from
WonyoungChoi:support-host-build
Sep 9, 2021
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ on: | |
| - 'DEPS' | ||
| workflow_dispatch: | ||
|
|
||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-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 |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| FROM ghcr.io/flutter-tizen/tizen-tools:latest | ||
| # | ||
| # Stage for build-engine-base | ||
| # | ||
| FROM ghcr.io/flutter-tizen/tizen-tools:latest AS build-engine-base | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y git curl ca-certificates python python3 xz-utils pkg-config \ | ||
| libncurses5 libfreetype6-dev && \ | ||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y git curl pkg-config ca-certificates xz-utils python python3 libncurses5 && \ | ||
| apt-get clean | ||
|
|
||
| # Install depot tools. | ||
|
|
@@ -13,3 +17,33 @@ RUN git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_t | |
| # Add engine building tools. | ||
| ADD tools/* /engine/tools/ | ||
| ENV PATH=$PATH:/engine/tools | ||
|
|
||
|
|
||
| # | ||
| # Stage for build-engine-with-efl | ||
| # | ||
| FROM build-engine-base AS build-engine-with-efl | ||
|
|
||
| # Install dependencies for building EFL. | ||
| RUN apt-get install -y build-essential check meson ninja-build && \ | ||
| apt-get clean | ||
| RUN apt-get install -y libssl-dev libsystemd-dev libglib2.0-dev libudev-dev libmount-dev libdbus-1-dev libunwind-dev && \ | ||
| apt-get clean | ||
| RUN apt-get install -y libjpeg-dev libopenjp2-7-dev libgif-dev libtiff5-dev librsvg2-dev libheif-dev libwebp-dev libraw-dev \ | ||
| libpoppler-dev libpoppler-cpp-dev libspectre-dev libfreetype6-dev libfontconfig1-dev libharfbuzz-dev \ | ||
| libpulse-dev libsndfile1-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ | ||
| libibus-1.0-dev libscim-dev libfribidi-dev libinput-dev liblua5.2-dev libluajit-5.1-dev \ | ||
| libx11-dev libxext-dev libxrender-dev libxcursor-dev libxcomposite-dev libxinerama-dev libxrandr-dev \ | ||
| libxtst-dev libxss-dev libxdamage-dev libgl1-mesa-dev xvfb && \ | ||
| apt-get clean | ||
|
|
||
| # Build and install EFL for host build. | ||
| RUN git clone --depth 1 https://git.enlightenment.org/core/efl.git -b efl-1.25 /tmp/efl && \ | ||
| meson -Dbuild-examples=false -Dbuild-tests=false /tmp/efl /tmp/efl/build && \ | ||
| ninja -C /tmp/efl/build && \ | ||
| ninja -C /tmp/efl/build install && \ | ||
| rm -fr /tmp/efl | ||
| RUN ldconfig | ||
|
|
||
| # Start dbus service when running this container. | ||
| ENTRYPOINT /etc/init.d/dbus start && /bin/bash | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
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
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.
Wow, now we can run test shell in docker?
Uh oh!
There was an error while loading. Please reload this page.
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.
Actually, this docker image is for building the
enginerepository and*-unitestscan be run after building the engine on this docker.for example:
But if the
test shellyou mentioned refers to the environment for testing the flutter widgets, we will need another docker environment.