@@ -28,7 +28,7 @@ source bin/activate
28
28
29
29
# clone codebase and install
30
30
git clone https://github.com/ECCC-MSC/msc-wis2node.git
31
- cd msc-wis2node
31
+ cd msc-wis2node/msc-wis2node-management
32
32
python3 setup.py install
33
33
34
34
# install sarracenia configurations
@@ -55,9 +55,9 @@ vim local.env # update accordingly
55
55
# MSC_WIS2NODE_BROKER_USERNAME: username of the MQTT broker to publish to=admin
56
56
# MSC_WIS2NODE_BROKER_PASSWORD: password of the MQTT broker to publish to
57
57
# MSC_WIS2NODE_MSC_DATAMART_AMQP: URL to MSC Datamart notification service
58
- # MSC_WIS2NODE_DATASET_CONFIG: filepath where MSC dataset definitions are managed
59
58
# MSC_WIS2NODE_DISCOVERY_METADATA_ZIP_URL: URL to SSC GitLab zipfile of MSC discovery metadata
60
59
# MSC_WIS2NODE_TOPIC_PREFIX: base topic prefix for publication (i.e. origin/a/wis2/ca-eccc-msc)
60
+ # MSC_WIS2NODE_CACHE: optional memcache instance
61
61
62
62
source local.env
63
63
@@ -80,7 +80,46 @@ msc-wis2node dataset delete-metadata --metadata-id 12345
80
80
81
81
### Docker
82
82
83
- Instructions to run msc-wis2node via Docker can be found in the [ ` docker ` ] ( docker ) directory.
83
+ The Docker setup uses Docker and Docker Compose to manage the following services:
84
+
85
+ - ** msc-wis2node-cache** : memcache caching for data update detection (optional)
86
+ - ** msc-wis2node-management** : management service to subscribe to MSC Datamart/HPFX and re-publish to WIS2
87
+
88
+ See [ ` msc-wis2node.env ` ] ( msc-wis2node.env ) for default environment variable settings.
89
+
90
+ To adjust service ports, edit [ ` docker-compose.override.yml ` ] ( docker-compose.override.yml ) accordingly.
91
+
92
+ The [ ` Makefile ` ] ( Makefile ) in the root directory provides options to manage the Docker Compose setup.
93
+
94
+ ``` bash
95
+ # build all images
96
+ make build
97
+
98
+ # build all images (no cache)
99
+ make force-build
100
+
101
+ # start all containers
102
+ make up
103
+
104
+ # start all containers in dev mode
105
+ make dev
106
+
107
+ # view all container logs in realtime
108
+ make logs
109
+
110
+ # login to the msc-wis2node-management container
111
+ make login
112
+
113
+ # restart all containers
114
+ make restart
115
+
116
+ # shutdown all containers
117
+ make down
118
+
119
+ # remove all volumes
120
+ make rm
121
+ ```
122
+
84
123
85
124
## Development
86
125
0 commit comments