diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/README.md | 14 | ||||
-rw-r--r-- | docker/cloudbuild.yaml | 11 | ||||
-rw-r--r-- | docker/skia-wasm-release/Dockerfile | 18 |
3 files changed, 43 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md index 41c2a39346..7079a817f7 100644 --- a/docker/README.md +++ b/docker/README.md @@ -15,6 +15,20 @@ need to manually push a verison, then run the following commands: docker tag skia-release gcr.io/skia-public/skia-release:prod docker push gcr.io/skia-public/skia-release:prod +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 + + skia-with-swift-shader-base ------ diff --git a/docker/cloudbuild.yaml b/docker/cloudbuild.yaml index 8f5554b9a4..3265ed9335 100644 --- a/docker/cloudbuild.yaml +++ b/docker/cloudbuild.yaml @@ -13,6 +13,11 @@ steps: - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-release:prod', './docker/skia-release'] timeout: 7200s + + - name: 'gcr.io/cloud-builders/docker' + args: ['build', '-t', 'gcr.io/$PROJECT_ID/skia-wasm-release:prod', './docker/skia-wasm-release'] + timeout: 7200s + - name: 'gcr.io/skia-public/infra:prod' dir: '/home/skia/golib/src/go.skia.org/infra/fiddlek' env: @@ -20,6 +25,7 @@ steps: - 'SKIP_BUILD=1' args: ['./build_fiddler_release'] timeout: 600s + - name: 'gcr.io/skia-public/infra:prod' dir: '/home/skia/golib/src/go.skia.org/infra/skottie' env: @@ -27,6 +33,7 @@ steps: - 'SKIP_BUILD=1' args: ['make', 'release_ci'] timeout: 600s + - name: 'gcr.io/skia-public/infra:prod' dir: '/home/skia/golib/src/go.skia.org/infra/debugger' env: @@ -34,12 +41,15 @@ steps: - 'SKIP_BUILD=1' args: ['make', 'release_ci'] timeout: 600s + - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/fiddler:$COMMIT_SHA', '/workspace/__fiddler_staging'] timeout: 600s + - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA', '/workspace/__skottie_staging'] timeout: 600s + - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA', '/workspace/__debugger_staging'] timeout: 600s @@ -48,6 +58,7 @@ images: - 'gcr.io/$PROJECT_ID/skottie:$COMMIT_SHA' - 'gcr.io/$PROJECT_ID/debugger:$COMMIT_SHA' - 'gcr.io/$PROJECT_ID/skia-release:prod' + - 'gcr.io/$PROJECT_ID/skia-wasm-release:prod' timeout: 7200s options: machineType: 'N1_HIGHCPU_32' diff --git a/docker/skia-wasm-release/Dockerfile b/docker/skia-wasm-release/Dockerfile new file mode 100644 index 0000000000..95209792fe --- /dev/null +++ b/docker/skia-wasm-release/Dockerfile @@ -0,0 +1,18 @@ +# Dockerfile for building the WASM libraries used by jsfiddle.skia.org +FROM gcr.io/skia-public/emsdk-release:prod + +RUN cd /tmp \ + && git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' \ + && mkdir -p /tmp/skia \ + && cd /tmp/skia \ + && /tmp/depot_tools/fetch skia + +RUN cd /tmp/skia/skia \ + && python tools/git-sync-deps \ + && ./bin/fetch-gn + +# PathKit should be in /tmp/skia/skia/out/pathkit/ +RUN /tmp/skia/skia/modules/pathkit/compile.sh + +# CanvasKit should be in /tmp/skia/skia/out/canvaskit_wasm +RUN /tmp/skia/skia/experimental/canvaskit/compile.sh |