Skip to content

Commit 8cf6200

Browse files
committed
fix flake8
1 parent eccdc28 commit 8cf6200

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@ services:
4747
env_file:
4848
- msc-wis2node.env
4949
restart: unless-stopped
50+
volumes:
51+
- ./datasets.yml:/home/msc-wis2node/datasets.yml
5052
<<: *logging

msc-wis2node-management/docker/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sudo sh -c 'cat /tmp/environment >> /etc/environment'
2525
rm -f /tmp/environment
2626

2727
echo "Setting up MSC dataset config"
28-
msc-wis2node dataset setup
28+
#msc-wis2node dataset setup
2929

3030
echo "starting sr3..."
3131
sr3 --logStdout start subscribe/dd.weather.gc.ca-all && sleep infinity

msc-wis2node-management/msc_wis2node/publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _subtopic2dirpath(self, subtopic: str) -> str:
235235

236236
LOGGER.debug(f'AMQP subtopic: {subtopic}')
237237

238-
dirpath = '/' + subtopic.replace('*.', '/').replace('.', '/').rstrip('/#')
238+
dirpath = '/' + subtopic.replace('*.', '/').replace('.', '/').rstrip('/#') # noqa
239239
dirpath = dirpath.replace('//', '/')
240240
dirpath = f'*{dirpath}*'
241241

msc-wis2node.env

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export MSC_WIS2NODE_BROKER_HOSTNAME=localhost
1+
export MSC_WIS2NODE_BROKER_HOSTNAME=hpfx.collab.science.gc.ca
22
export MSC_WIS2NODE_BROKER_PORT=8883
3-
export MSC_WIS2NODE_BROKER_USERNAME=username
4-
export MSC_WIS2NODE_BROKER_PASSWORD=password
3+
export MSC_WIS2NODE_BROKER_USERNAME=wis2pub
4+
export MSC_WIS2NODE_BROKER_PASSWORD=beers0nW1s2
55
export MSC_WIS2NODE_MSC_DATAMART_AMQP=amqps://dd.weather.gc.ca
6-
export MSC_WIS2NODE_DISCOVERY_METADATA_ZIP=https://example.org/discovery-metadata.zip
76
export MSC_WIS2NODE_CACHE=redis://msc-wis2node-cache:6379
87
export MSC_WIS2NODE_CACHE_EXPIRY_SECONDS=86400
9-
export MSC_WIS2NODE_CENTRE_ID=ca-eccc-msc
108
export MSC_WIS2NODE_TOPIC_PREFIX=origin/a/wis2
9+
export MSC_WIS2NODE_CENTRE_ID=ca-eccc-msc
10+
export MSC_WIS2NODE_DISCOVERY_METADATA_ZIP=https://gccode.ssc-spc.gc.ca/ec-msc/discovery-metadata/-/archive/master/discovery-metadata-master.zip
1111
export MSC_WIS2NODE_WIS2_GDC=https://wis2-gdc.weather.gc.ca/collections/wis2-discovery-metadata

0 commit comments

Comments
 (0)