File tree 3 files changed +13
-9
lines changed
3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 19
19
20
20
services :
21
21
msc-wis2node-cache :
22
- image : memcached
22
+ image : memcached:latest
23
23
container_name : msc-wis2node-cache
24
24
env_file :
25
25
- msc-wis2node.env
26
- msc-wis2node :
26
+ msc-wis2node-management :
27
+ image : msc-wis2node-management
27
28
container_name : msc-wis2node
28
29
build :
29
- context : msc-wis2node-management
30
+ context : msc-wis2node-management/
30
31
env_file :
31
32
- msc-wis2node.env
32
33
volumes :
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ RUN apt-get update -y && \
47
47
adduser msc-wis2node sudo && \
48
48
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
49
49
# install sr3 components
50
- mkdir -p $SR3_CONFIG /plugins && \
51
- mkdir -p $SR3_CONFIG /subscribe && \
52
- cp msc_wis2node/publisher.py $SR3_CONFIG/ plugins && \
53
- cp deploy/default/sarracenia/dd.weather.gc.ca-all.conf $SR3_CONFIG/ subscribe
50
+ mkdir -p /home/msc-wis2node/.config/sr3 /plugins && \
51
+ mkdir -p /home/msc-wis2node/.config/sr3 /subscribe && \
52
+ cp msc_wis2node/publisher.py /home/msc-wis2node/.config/sr3/ plugins/publisher.py && \
53
+ cp deploy/default/sarracenia/dd.weather.gc.ca-all.conf /home/msc-wis2node/.config/sr3/ subscribe/dd.weather.gc.ca-all.conf
54
54
55
55
USER msc-wis2node
56
56
WORKDIR /home/msc-wis2node
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
1
2
# ##############################################################################
2
3
#
3
4
# Copyright (C) 2025 Tom Kralidis
19
20
20
21
echo " START /entrypoint.sh"
21
22
22
- set +e
23
+ printenv | grep -v " no_proxy" > /tmp/environment
24
+ sudo sh -c ' cat /tmp/environment >> /etc/environment'
25
+ rm -f /tmp/environment
23
26
24
27
echo " starting sr3..."
25
28
26
- sr3 --logStdout --debug foreground subscribe/dd.weather.gc.ca-all && sleep infinity
29
+ sr3 --logStdout start subscribe/dd.weather.gc.ca-all && sleep infinity
27
30
28
31
echo " END /entrypoint.sh"
You can’t perform that action at this time.
0 commit comments