-
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
[docker] Support host build #181
Conversation
| ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu/ | ||
|
|
||
| # Start dbus service when running this container. | ||
| ENTRYPOINT /etc/init.d/dbus start && /bin/bash |
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.
dbus service should be started to run flutter_tizen_unittests.
- Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build.
9ecbd06 to
8aca7eb
Compare
ci/docker/tizen/Dockerfile
Outdated
| apt-get install -y build-essential check meson ninja-build && \ | ||
| apt-get install -y libssl-dev libsystemd-dev libjpeg-dev libglib2.0-dev libgstreamer1.0-dev \ | ||
| liblua5.2-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libavahi-client-dev \ | ||
| libharfbuzz-dev libibus-1.0-dev libx11-dev libxext-dev libxrender-dev libgl1-mesa-dev \ | ||
| libgif-dev libtiff5-dev libpoppler-dev libpoppler-cpp-dev libspectre-dev libraw-dev \ | ||
| librsvg2-dev libudev-dev libmount-dev libdbus-1-dev libpulse-dev libsndfile1-dev \ | ||
| libxcursor-dev libxcomposite-dev libxinerama-dev libxrandr-dev libxtst-dev libxss-dev \ | ||
| libgstreamer-plugins-base1.0-dev doxygen libopenjp2-7-dev libscim-dev libxdamage-dev \ | ||
| libwebp-dev libunwind-dev libheif-dev libinput-dev libluajit-5.1-dev && \ |
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.
How much image size would be increased by these additional dependencies? Is there no problem?
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.
Compared to tizen-tools, the uncompressed size of the added layers is about 1 GB. It takes about 10 more seconds to download the docker image in the build workflows. I think it is acceptable.
ghcr.io/flutter-tizen/build-engine latest f1fb55b88802 3 hours ago 2.91GB
ghcr.io/flutter-tizen/tizen-tools latest 12442f867f85 5 hours ago 1.86GB
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.
Oh. That's great.
| 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 && \ |
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?
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 engine repository and *-unitests can be run after building the engine on this docker.
for example:
# docker run -it ghcr.io/flutter-tizen/build-engine /bin/bash
mkdir /workspace && cd /workspace
git clone --depth 1 https://github.com/flutter-tizen/engine src/flutter
gclient-prepare-sync.sh --reduce-deps --shallow-sync
gclient sync --no-history
build-engine.sh
./src/out/host_debug/flutter-tizen-unittests But if the test shell you mentioned refers to the environment for testing the flutter widgets, we will need another docker environment.
|
I merge this PR early because of testing #182. |
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
* [docker] Support host build - Install EFL 1.51.1 and dependencies. (including xvfb) - Fix build-engine.sh for buliding host build. * [docker] Optimize Dockerfile for build-engine
tizen-toolsimage.The build workflows will be:
build.yml
test.yml