aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorKevin Lubick <kjlubick@google.com>2018-11-05 17:28:53 -0500
committerKevin Lubick <kjlubick@google.com>2018-11-06 15:45:51 +0000
commit96175696dea8e017084f9d7dbf3bcb8c86daea19 (patch)
tree403ff57457778963b89ffe780d79004d45c698ae /docker
parent166dbd3135e02d0e874591db02f9b1ad7fc961f5 (diff)
downloadplatform_external_skqp-96175696dea8e017084f9d7dbf3bcb8c86daea19.tar.gz
platform_external_skqp-96175696dea8e017084f9d7dbf3bcb8c86daea19.tar.bz2
platform_external_skqp-96175696dea8e017084f9d7dbf3bcb8c86daea19.zip
Add skia-wasm-release image.
This should let us pipe continuous builds into jsfiddle.skia.org and skottie.skia.org Bug: skia: Change-Id: I587e1293237d42dfdacae0757f44634f29d6f251 Reviewed-on: https://skia-review.googlesource.com/c/168440 Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/README.md14
-rw-r--r--docker/cloudbuild.yaml11
-rw-r--r--docker/skia-wasm-release/Dockerfile18
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