wasm-rebuild: Switch to the latest version of our buildpack image

This commit is contained in:
Kamil Śliwak 2022-02-15 10:58:24 +01:00
parent 1f5407521a
commit 59d4fdba75
2 changed files with 21 additions and 5 deletions

View File

@ -207,10 +207,17 @@ else
fi
echo "Create symbolic links for backwards compatibility with older emscripten docker images."
ln -sf /emsdk_portable/node/current/* /emsdk_portable/node/
ln -sf /emsdk_portable/emscripten/sdk/ /emsdk_portable/
ln -sf sdk /emsdk_portable/emscripten/bin
ln -sf /emsdk_portable/emscripten/bin/* /usr/local/bin
ln -s /emsdk/upstream/emscripten/ /emsdk_portable
mkdir /emsdk_portable/node/
ln -s /emsdk/node/* /emsdk_portable/node/current
mkdir /emsdk_portable/emscripten/
ln -s /emsdk/upstream/emscripten/ /emsdk_portable/emscripten/sdk
ln -s /emsdk/upstream/bin/* /usr/local/bin/
# This variable used to be defined when this script was running inside the trzeci/emscripten:sdk-tag-1.39.3-64bit
# image but for some reason in solidity-buildpack-deps it no longer is.
export EMSCRIPTEN=/emsdk/upstream/emscripten
rm -rf /src
ln -sf /root/project /src

View File

@ -25,4 +25,13 @@ if [ ! -d "${OUTPUTDIR}" ]; then
fi
OUTPUTDIR=$(realpath "${OUTPUTDIR}")
docker run --rm -v "${OUTPUTDIR}":/tmp/output -v "${SCRIPTDIR}":/tmp/scripts:ro -it trzeci/emscripten:sdk-tag-1.39.3-64bit /tmp/scripts/docker-scripts/rebuild_tags.sh "${TAGS}" /tmp/output "$@"
# solbuildpackpusher/solidity-buildpack-deps:emscripten-9
DOCKER_IMAGE="solbuildpackpusher/solidity-buildpack-deps@sha256:d51534dfdd05ece86f69ed7beafd68c15b88606da00a4b7fe2873ccfbd0dce24"
docker run \
--rm \
--interactive \
--tty \
--volume "${OUTPUTDIR}":/tmp/output \
--volume "${SCRIPTDIR}":/tmp/scripts:ro \
"${DOCKER_IMAGE}" \
/tmp/scripts/docker-scripts/rebuild_tags.sh "${TAGS}" /tmp/output "$@"