Skip to content

Commit

Permalink
Update emsdk-release image
Browse files Browse the repository at this point in the history
Bug: skia:
Change-Id: I780912e1c481765d2d17d2ce66a27470ee8b4912
Reviewed-on: https://skia-review.googlesource.com/c/168483
Reviewed-by: Kevin Lubick <kjlubick@google.com>
  • Loading branch information
kjlubick committed Nov 6, 2018
1 parent e6c8575 commit e70c6b1
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 21 deletions.
2 changes: 1 addition & 1 deletion infra/bots/recipe_modules/build/canvaskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

DOCKER_IMAGE = 'gcr.io/skia-public/emsdk-release:1.38.6_jre'
DOCKER_IMAGE = 'gcr.io/skia-public/emsdk-release:1.38.16_v1'
INNER_BUILD_SCRIPT = '/SRC/skia/infra/canvaskit/build_canvaskit.sh'

BUILD_PRODUCTS_ISOLATE_WHITELIST_WASM = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"[START_DIR]/cache/work:/SRC",
"-v",
"[START_DIR]/cache/docker/pathkit:/OUT",
"gcr.io/skia-public/emsdk-release:1.38.6_jre",
"gcr.io/skia-public/emsdk-release:1.38.16_v1",
"/SRC/skia/infra/pathkit/build_pathkit.sh",
"debug",
"asm.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"[START_DIR]/cache/work:/SRC",
"-v",
"[START_DIR]/cache/docker/pathkit:/OUT",
"gcr.io/skia-public/emsdk-release:1.38.6_jre",
"gcr.io/skia-public/emsdk-release:1.38.16_v1",
"/SRC/skia/infra/pathkit/build_pathkit.sh",
"asm.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"[START_DIR]/cache/work:/SRC",
"-v",
"[START_DIR]/cache/docker/canvaskit:/OUT",
"gcr.io/skia-public/emsdk-release:1.38.6_jre",
"gcr.io/skia-public/emsdk-release:1.38.16_v1",
"/SRC/skia/infra/canvaskit/build_canvaskit.sh",
"debug"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"[START_DIR]/cache/work:/SRC",
"-v",
"[START_DIR]/cache/docker/pathkit:/OUT",
"gcr.io/skia-public/emsdk-release:1.38.6_jre",
"gcr.io/skia-public/emsdk-release:1.38.16_v1",
"/SRC/skia/infra/pathkit/build_pathkit.sh",
"debug"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"[START_DIR]/cache/work:/SRC",
"-v",
"[START_DIR]/cache/docker/canvaskit:/OUT",
"gcr.io/skia-public/emsdk-release:1.38.6_jre",
"gcr.io/skia-public/emsdk-release:1.38.16_v1",
"/SRC/skia/infra/canvaskit/build_canvaskit.sh",
"cpu"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"[START_DIR]/cache/work:/SRC",
"-v",
"[START_DIR]/cache/docker/pathkit:/OUT",
"gcr.io/skia-public/emsdk-release:1.38.6_jre",
"gcr.io/skia-public/emsdk-release:1.38.16_v1",
"/SRC/skia/infra/pathkit/build_pathkit.sh"
],
"env": {
Expand Down
2 changes: 1 addition & 1 deletion infra/bots/recipe_modules/build/pathkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

DOCKER_IMAGE = 'gcr.io/skia-public/emsdk-release:1.38.6_jre'
DOCKER_IMAGE = 'gcr.io/skia-public/emsdk-release:1.38.16_v1'
INNER_BUILD_SCRIPT = '/SRC/skia/infra/pathkit/build_pathkit.sh'

BUILD_PRODUCTS_ISOLATE_WHITELIST_WASM = [
Expand Down
3 changes: 2 additions & 1 deletion infra/canvaskit/build_canvaskit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# is mounted at /OUT

# For example:
# docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/canvaskit:/OUT gcr.io/skia-public/emsdk-release:1.38.6_jre /SRC/infra/canvaskit/build_canvaskit.sh
# docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/canvaskit:/OUT gcr.io/skia-public/emsdk-release:1.38.16_v1 /SRC/infra/canvaskit/build_canvaskit.sh

set +e
set -x
Expand All @@ -23,3 +23,4 @@ BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
CANVASKIT_DIR=$BASE_DIR/../../experimental/canvaskit

BUILD_DIR=/OUT $CANVASKIT_DIR/compile.sh $@

3 changes: 2 additions & 1 deletion infra/pathkit/build_pathkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# is mounted at /OUT

# For example:
# docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/dockerpathkit:/OUT gcr.io/skia-public/emsdk-release:1.38.6_jre /SRC/infra/pathkit/build_pathkit.sh
# docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/dockerpathkit:/OUT gcr.io/skia-public/emsdk-release:1.38.16_v1 /SRC/infra/pathkit/build_pathkit.sh

set +e
set -x
Expand All @@ -23,3 +23,4 @@ BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
PATHKIT_DIR=$BASE_DIR/../../modules/pathkit

BUILD_DIR=/OUT $PATHKIT_DIR/compile.sh $@

10 changes: 5 additions & 5 deletions infra/pathkit/docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# TODO(kjlubick) add _v1 to this version to be like the others.
EMSDK_VERSION=1.38.6_jre
EMSDK_VERSION=1.38.16_v1

# Can check CHROME_VERSION with
# docker run karma-chrome-tests /usr/bin/google-chrome-stable --version
CHROME_VERSION=68.0.3440.106_v5

publish_emsdk_base:
docker build -t emsdk-base ./emsdk-base/
docker build --no-cache -t emsdk-base ./emsdk-base/
docker tag emsdk-base gcr.io/skia-public/emsdk-release:${EMSDK_VERSION}
docker push gcr.io/skia-public/emsdk-release:${EMSDK_VERSION}

publish_karma_chrome_tests:
docker build -t karma-chrome-tests ./karma-chrome-tests/
docker build --no-cache -t karma-chrome-tests ./karma-chrome-tests/
docker tag karma-chrome-tests gcr.io/skia-public/karma-chrome-tests:${CHROME_VERSION}
docker push gcr.io/skia-public/karma-chrome-tests:${CHROME_VERSION}
docker push gcr.io/skia-public/karma-chrome-tests:${CHROME_VERSION}

11 changes: 7 additions & 4 deletions infra/pathkit/docker/emsdk-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ RUN cd /opt \

WORKDIR /opt/emsdk

# These versions were available and worked on my local desktop as of Aug 2 2018.
RUN ./emsdk install emscripten-1.38.6 node-8.9.1-64bit clang-e1.38.6-64bit
RUN ./emsdk update-tags

RUN ./emsdk activate emscripten-1.38.6 node-8.9.1-64bit clang-e1.38.6-64bit
# These versions were available and worked on my local desktop as of Nov 6 2018.
RUN ./emsdk install emscripten-1.38.16 node-8.9.1-64bit clang-e1.38.16-64bit

RUN ./emsdk activate emscripten-1.38.16 node-8.9.1-64bit clang-e1.38.16-64bit

RUN /bin/bash -c "source ./emsdk_env.sh"

ENV EMSDK=/opt/emsdk

RUN mkdir -p /OUT /SRC
RUN mkdir -p /OUT /SRC

5 changes: 3 additions & 2 deletions modules/pathkit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ test-docker:
mkdir -p $$SKIA_ROOT/out/dockerbuild

docker run --rm -v $$SKIA_ROOT:/SRC -v $$SKIA_ROOT/out/dockerbuild:/OUT \
gcr.io/skia-public/emsdk-release:1.38.6_jre /SRC/infra/pathkit/build_pathkit.sh
gcr.io/skia-public/emsdk-release:1.38.16_v1 /SRC/infra/pathkit/build_pathkit.sh
cp ../../out/dockerbuild/pathkit.js ./npm-wasm/bin/test/pathkit.js
cp ../../out/dockerbuild/pathkit.wasm ./npm-wasm/bin/test/pathkit.wasm

docker run --rm -v $$SKIA_ROOT:/SRC -v $$SKIA_ROOT/out/dockerbuild:/OUT \
gcr.io/skia-public/emsdk-release:1.38.6_jre /SRC/infra/pathkit/build_pathkit.sh asm.js
gcr.io/skia-public/emsdk-release:1.38.16_v1 /SRC/infra/pathkit/build_pathkit.sh asm.js
cp ../../out/dockerbuild/pathkit.js ./npm-asmjs/bin/test/pathkit.js
cp ../../out/dockerbuild/pathkit.js.mem ./npm-asmjs/bin/test/pathkit.js.mem

Expand Down Expand Up @@ -142,3 +142,4 @@ local-example-debug:
echo "Go check out localhost:8000/npm-wasm/example.html"
echo "or http://localhost:8000/npm-asmjs/example.html"
python serve.py

0 comments on commit e70c6b1

Please sign in to comment.