Debian Codegraph @

infra/docker/README.md

raw
1 # Docker
2
3 Docker files for building different Skia targets.
4
5 ## cmake-release
6
7 This image is used to build Skia using CMake.
8
9 It should get rebuilt via Louhi (manual invocation) anytime there's an update to the Dockerfile
10 or relevant installed libraries.
11
12 For testing the image locally, the following flow can be helpful:
13
14 docker build -t cmake-release ./cmake-release/
15 # Run bash in it to poke around and make sure things are properly
16 # installed and configured. Also useful to get version of CMake.
17 docker run -it cmake-release /bin/bash
18 # Compile Skia in a local checkout with the local image
19 docker run -v $SKIA_ROOT:/SRC -v /tmp/output:/OUT cmake-release /SRC/infra/cmake/build_skia.sh
20
21 ## binary-size
22
23 This image is used to build code size tree-maps of Skia
24
25 It should get rebuilt via Louhi (manual invocation) anytime there's an update to the Dockerfile
26 or relevant installed libraries.
27
28 For testing the image locally, the following flow can be helpful:
29
30 docker build -t binary-size ./binary-size/
31 # Run bash in it to poke around and make sure things are properly
32 # installed and configured.
33 docker run -it binary-size /bin/sh
34 # analyze exe "skottie_tool" in build directory out/Release
35 docker run -v $SKIA_ROOT/out/Release:/IN -v /tmp/output:/OUT binary-size /opt/binary_size/src/run_binary_size_analysis.py --library /IN/skottie_tool --destdir /OUT