Skip to content

Commit

Permalink
build(docker): pre-touch symbol_lists.lock
Browse files Browse the repository at this point in the history
To address:

    File "/emsdk/upstream/emscripten/tools/filelock.py", line 391, in _acquire
    fd = os.open(self._lock_file, open_mode)
PermissionError: [Errno 13] Permission denied:
'/emsdk/upstream/emscripten/cache/symbol_lists.lock'[
  • Loading branch information
thewtex committed Dec 28, 2024
1 parent 3176de7 commit 3e17f46
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/docker/itk-wasm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,17 @@ COPY web-build /usr/local/bin/

# Trigger Emscripten to cache builds of required system libraries
ADD median-filter-pipelineCopy /median-filter-pipelineCopy
RUN if [ $BASE_IMAGE = "itkwasm/emscripten-base" ]; then cd /median-filter-pipelineCopy; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-flto=thin -s DISABLE_EXCEPTION_CATCHING=0'; rm -rf ./web-build; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-flto -s DISABLE_EXCEPTION_CATCHING=0'; rm -rf ./web-build; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-fno-lto -s DISABLE_EXCEPTION_CATCHING=1'; rm -rf /median-filter-pipelineCopy; chmod -R 777 /emsdk/upstream/emscripten/cache; fi
RUN if [ $BASE_IMAGE = "itkwasm/emscripten-base" ]; then \
cd /median-filter-pipelineCopy && \
/usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-flto=thin -s DISABLE_EXCEPTION_CATCHING=0' && \
rm -rf ./web-build && \
/usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-flto -s DISABLE_EXCEPTION_CATCHING=0' && \
rm -rf ./web-build; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-fno-lto -s DISABLE_EXCEPTION_CATCHING=1' && \
rm -rf /median-filter-pipelineCopy && \
mkdir -p /emsdk/upstream/emscripten/cache/symbol_lists && \
touch /emsdk/upstream/emscripten/cache/symbol_lists.lock && \
chmod -R 777 /emsdk/upstream/emscripten/cache \
fi

# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
Expand Down

0 comments on commit 3e17f46

Please sign in to comment.