-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathstatic-wado.json5.multidist.sample
80 lines (80 loc) · 2.98 KB
/
static-wado.json5.multidist.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
staticWadoConfig: {
deployments: [
// Each deployment is a separate distribution. After running yarn synth, you can deploy resources for
// a single distribution using the name - ex:
// yarn deploy ohif-only
// or deploy resources for all distributions using:
// yarn deploy --all
// Once the distribution resources are created, you can use the ../static-wado-creator project
// to deploy / upload to a specific distribution by name - ex:
// node bin/deploydicomweb.mjs client -d ohif-only
{
name: 'ohif-only',
clientDir: '~/ohif',
domainName: 'example.dev',
siteSubDomain: 'ohif',
clientGroup: {
Bucket: 'oo-s3cl-1234567',
},
// yarn deploy ohif-only
// Website: ohif.example.dev
// deploy client files: ../static-wado-creator - node bin/deploydicomweb.mjs client -d ohif-only
},
{
name: 'dicomweb-only',
rootDir: '~/dicomweb',
rootGroup: {
path: "/dicomweb",
Bucket: 'do-s3cl-1234567',
},
// yarn deploy dicomweb-only
// Website: dxxxxxxxxxxx.cloudfront.net
// deploy dicomweb files: ../static-wado-creator - node bin/deploydicomweb.mjs -d dicomweb-only
},
{
name: 'ohif-with-dicomweb',
clientDir: '~/ohif',
rootDir: '~/dicomweb',
clientGroup: {
Bucket: 'ob-s3cl-1234567',
},
rootGroup: {
path: "/dicomweb",
Bucket: 'db-s3cl-1234567',
},
// yarn deploy ohif-with-dicomweb
// Website: dxxxxxxxxxxx.cloudfront.net
// deploy dicomweb files: ../static-wado-creator - node bin/deploydicomweb.mjs -d ohif-with-dicomweb
// deploy client files: ../static-wado-creator - node bin/deploydicomweb.mjs -d ohif-with-dicomweb
},
{
// a secondary ohif deployment using the same DICOMweb backend
// you might wish to have different versions (clientDir), or update one then the other
// such as for production / test environments.
// note that only one distribution may be the creator of a bucket so the other uses the
// 'useExistingBucket' flag.
name: 'ohif2-with-dicomweb',
clientDir: '~/ohif',
rootDir: '~/dicomweb',
clientGroup: {
Bucket: 'ob2-s3cl-1234567',
},
rootGroup: {
path: "/dicomweb",
useExistingBucket: true,
Bucket: 'db-s3cl-1234567',
},
// yarn deploy ohif2-with-dicomweb
// Website: dxxxxxxxxxxx.cloudfront.net
// deploy dicomweb files (optional if already deployed by other distribution):
// ../static-wado-creator - node bin/deploydicomweb.mjs -d ohif2-with-dicomweb
// deploy client files: ../static-wado-creator - node bin/deploydicomweb.mjs -d ohif2-with-dicomweb
},
],
s3Env: {
account: '123456789012',
region: 'us-east-2',
},
},
}