Skip to content

Commit 8ba3b90

Browse files
committed
Fix docker build to not depend on emsdk_set_env.sh
This was an internal script that we used to generate up until #544. Now we avoid writing that file at all and emsdk_env.sh is instead sourced directly. This should fix the docker CI issues we have been having.
1 parent 96ba7f6 commit 8ba3b90

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docker/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,14 @@ RUN echo "## Install Emscripten" \
3232
RUN cd ${EMSDK} \
3333
&& echo "## Generate standard configuration" \
3434
&& ./emsdk activate ${EMSCRIPTEN_VERSION} \
35-
&& ./emsdk construct_env \
36-
&& cat ${EMSDK}/emsdk_set_env.sh \
3735
&& chmod -R 777 ${EMSDK}/upstream/emscripten/cache \
3836
&& echo "## Done"
3937

4038
# Clean up emscripten installation and strip some symbols
4139
RUN echo "## Aggresive optimization: Remove debug symbols" \
4240
&& apt-get -qq -y update && apt-get -qq install -y --no-install-recommends \
4341
binutils \
44-
&& . ${EMSDK}/emsdk_set_env.sh \
42+
&& cd ${EMSDK} && . ./emsdk_env.sh \
4543
# Remove debugging symbols from embedded node (extra 7MB)
4644
&& strip -s `which node` \
4745
# Tests consume ~80MB disc space
@@ -56,7 +54,7 @@ RUN echo "## Aggresive optimization: Remove debug symbols" \
5654
# TODO(sbc): We should be able to use just emcc -v here but it doesn't
5755
# currently create the sanity file.
5856
RUN echo "## Generate sanity" \
59-
&& . ${EMSDK}/emsdk_set_env.sh \
57+
&& cd ${EMSDK} && . ./emsdk_env.sh \
6058
&& echo "int main() { return 0; }" > hello.c \
6159
&& emcc -c hello.c \
6260
&& cat ${EMSDK}/.emscripten_sanity \
@@ -90,7 +88,7 @@ RUN echo "## Create emscripten user (1000:1000)" \
9088
&& groupadd --gid 1000 emscripten \
9189
&& useradd --uid 1000 --gid emscripten --shell /bin/bash --create-home emscripten \
9290
&& echo "umask 0000" >> /etc/bash.bashrc \
93-
&& echo ". /emsdk/emsdk_set_env.sh" >> /etc/bash.bashrc \
91+
&& echo ". /emsdk/emsdk_env.sh" >> /etc/bash.bashrc \
9492
&& echo "## Done"
9593

9694
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)