Drop "-upstream" suffix from docker image name (#530)

This commit is contained in:
Sam Clegg
2020-06-24 16:55:32 -07:00
committed by GitHub
parent 47c669a002
commit eff1d2e2f1
2 changed files with 3 additions and 8 deletions

View File

@@ -112,7 +112,7 @@ jobs:
- setup_remote_docker - setup_remote_docker
- run: - run:
name: build name: build
command: docker build --network host --build-arg=EMSCRIPTEN_VERSION=${CIRCLE_TAG}-upstream --tag emscripten/emsdk:${CIRCLE_TAG} ./docker command: docker build --network host --build-arg EMSCRIPTEN_VERSION=${CIRCLE_TAG} --tag emscripten/emsdk:${CIRCLE_TAG} ./docker
- run: - run:
name: tag image name: tag image
command: docker tag emscripten/emsdk:${CIRCLE_TAG} emscripten/emsdk:latest command: docker tag emscripten/emsdk:${CIRCLE_TAG} emscripten/emsdk:latest

View File

@@ -1,12 +1,6 @@
FROM debian:buster AS stage_build FROM debian:buster AS stage_build
# ------------------------------------------------------------------------------
# Supports only 1.38.40+, accepts also '-upstream' variants
ARG EMSCRIPTEN_VERSION=1.39.18 ARG EMSCRIPTEN_VERSION=1.39.18
# ------------------------------------------------------------------------------
ENV EMSDK /emsdk ENV EMSDK /emsdk
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@@ -52,9 +46,10 @@ RUN echo "## Aggresive optimization: Remove debug symbols" \
&& strip -s `which node` \ && strip -s `which node` \
# Tests consume ~80MB disc space # Tests consume ~80MB disc space
&& rm -fr ${EMSDK}/upstream/emscripten/tests \ && rm -fr ${EMSDK}/upstream/emscripten/tests \
# Fastcomp is not supported
&& rm -fr ${EMSDK}/upstream/fastcomp \
# strip out symbols from clang (~extra 50MB disc space) # strip out symbols from clang (~extra 50MB disc space)
&& find ${EMSDK}/upstream/bin -type f -exec strip -s {} + || true \ && find ${EMSDK}/upstream/bin -type f -exec strip -s {} + || true \
&& find ${EMSDK}/upstream/fastcomp/bin -type f -exec strip -s {} + || true \
&& echo "## Done" && echo "## Done"
# Generate sanity # Generate sanity