Mercurial > hg > orthanc-stone
comparison OrthancStone/Samples/RtViewerPlugin/docker-build.sh @ 1527:4c4b267e4004
RtViewerPlugin : similar to the StoneWebPlugin, but for the sole RtViewer sample
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 02 Aug 2020 15:13:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1526:61023b0d39c8 | 1527:4c4b267e4004 |
---|---|
1 #!/bin/bash | |
2 | |
3 set -ex | |
4 | |
5 IMAGE=jodogne/wasm-builder:1.39.17-upstream | |
6 #IMAGE=wasm-builder | |
7 | |
8 if [ "$1" != "Debug" -a "$1" != "Release" ]; then | |
9 echo "Please provide build type: Debug or Release" | |
10 exit -1 | |
11 fi | |
12 | |
13 if [ -t 1 ]; then | |
14 # TTY is available => use interactive mode | |
15 DOCKER_FLAGS='-i' | |
16 fi | |
17 | |
18 ROOT_DIR=`dirname $(readlink -f $0)`/../../.. | |
19 | |
20 mkdir -p ${ROOT_DIR}/wasm-binaries | |
21 | |
22 docker run -t ${DOCKER_FLAGS} --rm \ | |
23 --user $(id -u):$(id -g) \ | |
24 -v ${ROOT_DIR}:/source:ro \ | |
25 -v ${ROOT_DIR}/wasm-binaries:/target:rw ${IMAGE} \ | |
26 bash /source/OrthancStone/Samples/RtViewerPlugin/docker-internal.sh $1 | |
27 | |
28 ls -lR ${ROOT_DIR}/wasm-binaries/share/ |