initial prototype
This commit is contained in:
parent
3f4fbd2639
commit
1c3f3cfcf6
@ -1,17 +1,6 @@
|
|||||||
version: '3.5'
|
version: '3.5'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
proxy:
|
|
||||||
image: nginx:1.15-alpine
|
|
||||||
ports:
|
|
||||||
- 8899:80
|
|
||||||
volumes:
|
|
||||||
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# LINK: https://hub.docker.com/r/jodogne/orthanc-plugins/
|
|
||||||
# TODO: Update to use Postgres
|
|
||||||
# https://github.com/mrts/docker-postgresql-multiple-databases
|
|
||||||
orthanc:
|
orthanc:
|
||||||
image: jodogne/orthanc-plugins:1.5.6
|
image: jodogne/orthanc-plugins:1.5.6
|
||||||
hostname: orthanc
|
hostname: orthanc
|
||||||
@ -20,7 +9,7 @@ services:
|
|||||||
- ./config/orthanc.json:/etc/orthanc/orthanc.json:ro
|
- ./config/orthanc.json:/etc/orthanc/orthanc.json:ro
|
||||||
# Persist data
|
# Persist data
|
||||||
- ./volumes/orthanc-db/:/var/lib/orthanc/db/
|
- ./volumes/orthanc-db/:/var/lib/orthanc/db/
|
||||||
# ports:
|
ports:
|
||||||
# - '4242:4242' # DICOM
|
- '4242:4242' # DICOM
|
||||||
# - '8042:8042' # Web
|
- '8042:8042' # Web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@ -29,11 +29,15 @@ For our purposes, we will be using `Orthanc`, but you can see a list of
|
|||||||
|
|
||||||
- Docker
|
- Docker
|
||||||
- [Docker for Mac](https://docs.docker.com/docker-for-mac/)
|
- [Docker for Mac](https://docs.docker.com/docker-for-mac/)
|
||||||
- [Docker for Windows](https://docs.docker.com/docker-for-windows/)
|
- [Docker for Windows (recommended)](https://docs.docker.com/docker-for-windows/)
|
||||||
|
- [Docker Toolbox for Windows](https://docs.docker.com/toolbox/toolbox_install_windows/)
|
||||||
|
|
||||||
_Not sure if you have `docker` installed already? Try running `docker --version`
|
_Not sure if you have `docker` installed already? Try running `docker --version`
|
||||||
in command prompt or terminal_
|
in command prompt or terminal_
|
||||||
|
|
||||||
|
If you are using Docker Toolbox you need to change the _proxy_ parameter in
|
||||||
|
_package.json_ to http://192.168.99.100:8042 or the ip docker-machine ip throws.
|
||||||
|
|
||||||
### Running Orthanc
|
### Running Orthanc
|
||||||
|
|
||||||
_Start Orthanc:_
|
_Start Orthanc:_
|
||||||
@ -112,7 +116,7 @@ window.config = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
To learn more about how you can configure the OHIF Viewer, check out our
|
To learn more about how you can configure the OHIF Viewer, check out our
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
"node": ">=8",
|
"node": ">=8",
|
||||||
"npm": ">=5"
|
"npm": ">=5"
|
||||||
},
|
},
|
||||||
|
"proxy": "http://localhost:8042",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"cm": "npx git-cz",
|
"cm": "npx git-cz",
|
||||||
"dev": "yarn run preBuild && cross-env PORT=5000 react-scripts start",
|
"dev": "yarn run preBuild && cross-env PORT=5000 react-scripts start",
|
||||||
|
|||||||
@ -5,9 +5,9 @@ window.config = {
|
|||||||
dicomWeb: [
|
dicomWeb: [
|
||||||
{
|
{
|
||||||
name: 'Orthanc',
|
name: 'Orthanc',
|
||||||
wadoUriRoot: 'http://localhost:8899/wado',
|
wadoUriRoot: '/wado',
|
||||||
qidoRoot: 'http://localhost:8899/dicom-web',
|
qidoRoot: '/dicom-web',
|
||||||
wadoRoot: 'http://localhost:8899/dicom-web',
|
wadoRoot: '/dicom-web',
|
||||||
qidoSupportsIncludeField: false,
|
qidoSupportsIncludeField: false,
|
||||||
imageRendering: 'wadors',
|
imageRendering: 'wadors',
|
||||||
thumbnailRendering: 'wadors',
|
thumbnailRendering: 'wadors',
|
||||||
@ -17,4 +17,4 @@ window.config = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|||||||
@ -6,18 +6,21 @@ import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader';
|
|||||||
* @param {String} webWorkScriptsPath
|
* @param {String} webWorkScriptsPath
|
||||||
*/
|
*/
|
||||||
export default function(baseDirectory, webWorkScriptsPath) {
|
export default function(baseDirectory, webWorkScriptsPath) {
|
||||||
const scriptsPath = `${window.location.protocol}//${
|
let scriptsPath = `${window.location.protocol}//${
|
||||||
window.location.host
|
window.location.host
|
||||||
}${baseDirectory}/${webWorkScriptsPath}`;
|
}${baseDirectory}`;
|
||||||
|
if (webWorkScriptsPath) {
|
||||||
|
scriptsPath += `/${webWorkScriptsPath}/`;
|
||||||
|
}
|
||||||
const config = {
|
const config = {
|
||||||
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
webWorkerPath: `${scriptsPath}/cornerstoneWADOImageLoaderWebWorker.min.js`,
|
webWorkerPath: `${scriptsPath}cornerstoneWADOImageLoaderWebWorker.min.js`,
|
||||||
taskConfiguration: {
|
taskConfiguration: {
|
||||||
decodeTask: {
|
decodeTask: {
|
||||||
loadCodecsOnStartup: true,
|
loadCodecsOnStartup: true,
|
||||||
initializeCodecsOnStartup: false,
|
initializeCodecsOnStartup: false,
|
||||||
codecsPath: `${scriptsPath}/cornerstoneWADOImageLoaderCodecs.min.js`,
|
codecsPath: `${scriptsPath}cornerstoneWADOImageLoaderCodecs.min.js`,
|
||||||
usePDFJS: false,
|
usePDFJS: false,
|
||||||
strict: false,
|
strict: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user