2018-05-15 20:25:54 +00:00
|
|
|
Docker
|
|
|
|
======
|
|
|
|
|
|
|
|
Docker files for building different Skia targets.
|
2018-05-28 13:19:44 +00:00
|
|
|
|
2018-06-05 21:21:30 +00:00
|
|
|
skia-release
|
2018-05-28 13:19:44 +00:00
|
|
|
------
|
|
|
|
|
2018-06-05 21:21:30 +00:00
|
|
|
This image is used to build Skia at TOT with SwiftShader.
|
|
|
|
|
2018-05-28 13:19:44 +00:00
|
|
|
There is a continuous process that builds this docker image, but if you
|
|
|
|
need to manually push a verison, then run the following commands:
|
|
|
|
|
|
|
|
docker build -t skia-release ./docker/skia-release/
|
|
|
|
docker tag skia-release gcr.io/skia-public/skia-release:prod
|
|
|
|
docker push gcr.io/skia-public/skia-release:prod
|
2018-06-05 21:21:30 +00:00
|
|
|
|
2018-11-05 22:28:53 +00:00
|
|
|
skia-wasm-release
|
|
|
|
------
|
|
|
|
|
|
|
|
This image is used to build the Web Assembly (WASM) libraries of Skia
|
|
|
|
at TOT.
|
|
|
|
|
|
|
|
There is a continuous process that builds this docker image, but if you
|
|
|
|
need to manually push a verison, then run the following commands:
|
|
|
|
|
|
|
|
docker build -t skia-wasm-release ./docker/skia-wasm-release/
|
|
|
|
docker tag skia-wasm-release gcr.io/skia-public/skia-wasm-release:prod
|
|
|
|
docker push gcr.io/skia-public/skia-wasm-release:prod
|
|
|
|
|
|
|
|
|
2018-06-05 21:21:30 +00:00
|
|
|
skia-with-swift-shader-base
|
|
|
|
------
|
|
|
|
|
|
|
|
This image is used to build a local checkout of Skia with SwiftShader and run the built
|
|
|
|
executables without requiring the SwiftShader be installed on the host.
|
|
|
|
|
|
|
|
For example (see build-with-swift-shader-and-run for more info), to reproduce a
|
|
|
|
fuzzer bug in SwiftShader:
|
|
|
|
|
|
|
|
# First, copy the test case into $SKIA_ROOT, say $SKIA_ROOT/skbug_1234
|
|
|
|
build-with-swift-shader-and-run "out/with-swift-shader/fuzz -t filter_fuzz -b /skia/skbug_1234"
|
|
|
|
|
|
|
|
There is a continuous process that builds this docker image (which only really changes
|
|
|
|
if SwiftShader is updated), but if you need to manually push a version, then run the
|
|
|
|
following commands:
|
|
|
|
|
|
|
|
docker build -t skia-with-swift-shader-base ./docker/skia-with-swift-shader-base/
|
|
|
|
docker tag skia-with-swift-shader-base gcr.io/skia-public/skia-with-swift-shader-base:prod
|
2019-01-31 17:47:20 +00:00
|
|
|
docker push gcr.io/skia-public/skia-with-swift-shader-base:prod
|
|
|
|
|
|
|
|
cmake-release
|
|
|
|
------
|
|
|
|
|
|
|
|
This image is used to build Skia using CMake.
|
|
|
|
|
|
|
|
It gets manually pushed anytime there's an update to the Dockerfile or relevant
|
|
|
|
installed libraries. To push:
|
|
|
|
|
|
|
|
docker build -t cmake-release ./cmake-release/
|
2019-02-01 18:32:44 +00:00
|
|
|
docker tag cmake-release gcr.io/skia-public/cmake-release:3.13.1_v2
|
|
|
|
docker push gcr.io/skia-public/cmake-release:3.13.1_v2
|
2019-01-31 17:47:20 +00:00
|
|
|
|
|
|
|
For testing the image locally, the following flow can be helpful:
|
|
|
|
|
|
|
|
docker build -t cmake-release ./cmake-release/
|
|
|
|
# Run bash in it to poke around and make sure things are properly
|
|
|
|
# installed and configured. Also useful to get version of CMake.
|
|
|
|
docker run -it cmake-release /bin/bash
|
|
|
|
# Compile Skia in a local checkout with the local image
|
|
|
|
docker run -v $SKIA_ROOT:/SRC -v /tmp/output:/OUT cmake-release /SRC/infra/docker/cmake/build_skia.sh
|