annotate Start.sh @ 401:90a088ff2187

Added tag Orthanc-1.9.3 for changeset f454fe86061b
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 May 2021 12:10:35 +0200
parents da2be3ff2db5
children ad98466353c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2dbba2e6aa4b reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 #!/bin/bash
2dbba2e6aa4b reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
8
f8d781d1d267 test_changes, test_archive, test_media_archive
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3
diff changeset
3 # Without Docker:
f8d781d1d267 test_changes, test_archive, test_media_archive
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3
diff changeset
4 # python ./Tests/Run.py --force
f8d781d1d267 test_changes, test_archive, test_media_archive
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3
diff changeset
5
306
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
6 set -ex
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
7
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
8 if [ ! -f "./getscu-3.6.5" ]; then
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
9 # This binary was generated by running Linux Standard Base on
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
10 # "Resources/DcmtkTools" in the Orthanc source distribution,
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
11 # as DCMTK 3.6.0 does not contain "getscu"
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
12 wget http://orthanc.osimis.io/ThirdPartyDownloads/linux-standard-base/getscu-3.6.5
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
13 chmod +x ./getscu-3.6.5
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
14 fi
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
15
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
16 sudo docker run --rm -t -i -p 5000:5000 -p 5001:5001 \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
17 -v `pwd`:/tmp/tests:ro \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
18 -v `pwd`/getscu-3.6.5:/usr/bin/getscu:ro \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
19 --entrypoint python jodogne/orthanc-tests \
da2be3ff2db5 fix getscu binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
20 /tmp/tests/Tests/Run.py --docker $*