File tree 4 files changed +29
-5
lines changed
4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_INVM_RPC)
10
10
endif
11
11
12
12
$(DOCKER_SYNCD_INVM_RPC)_CONTAINER_NAME = syncd
13
- $(DOCKER_SYNCD_INVM_RPC)_VERSION = 1.0.0+ rpc
13
+ $(DOCKER_SYNCD_INVM_RPC)_VERSION = 1.0.0- rpc
14
14
$(DOCKER_SYNCD_INVM_RPC)_PACKAGE_NAME = syncd
15
15
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += --privileged -t
16
16
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ RUN wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \
46
46
&& pip install cffi==1.7.0 \
47
47
&& pip install --upgrade cffi==1.7.0 \
48
48
&& pip install nnpy \
49
+ && pip install numpy \
50
+ && pip install scipy \
51
+ && pip install setuptools \
49
52
&& mkdir -p /opt \
50
53
&& cd /opt \
51
54
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py \
Original file line number Diff line number Diff line change 1
1
FROM docker-config-engine-stretch-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
2
2
3
3
ARG docker_container_name
4
-
5
4
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
6
5
7
6
## Make apt-get non-interactive
@@ -25,7 +24,11 @@ RUN dpkg -i \
25
24
debs/{{ deb }}{{' '}}
26
25
{% - endfor %}
27
26
27
+ COPY ["start.sh", "/usr/bin/"]
28
+ COPY ["ivm_start.sh", "/usr/bin/"]
28
29
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
30
+ COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
31
+ COPY ["critical_processes", "/etc/supervisor/"]
29
32
30
33
## Clean up
31
34
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
Original file line number Diff line number Diff line change @@ -4,29 +4,47 @@ logfile_backups=2
4
4
nodaemon=true
5
5
6
6
[eventlistener:dependent-startup]
7
- command=python2 -m supervisord_dependent_startup
7
+ command=python3 -m supervisord_dependent_startup
8
8
autostart=true
9
9
autorestart=unexpected
10
10
startretries=0
11
11
exitcodes=0,3
12
12
events=PROCESS_STATE
13
+ buffer_size=25
14
+
15
+ [eventlistener:supervisor-proc-exit-listener]
16
+ command=/usr/bin/supervisor-proc-exit-listener --container-name syncd
17
+ events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING
18
+ autostart=true
19
+ autorestart=unexpected
13
20
buffer_size=1024
14
21
15
22
[program:rsyslogd]
16
23
command=/usr/sbin/rsyslogd -n -iNONE
17
24
priority=1
18
25
autostart=false
26
+ autorestart=unexpected
27
+ stdout_logfile=syslog
28
+ stderr_logfile=syslog
29
+ dependent_startup=true
30
+
31
+ [program:start]
32
+ command=/usr/bin/start.sh
33
+ priority=2
34
+ autostart=false
19
35
autorestart=false
36
+ startsecs=0
20
37
stdout_logfile=syslog
21
38
stderr_logfile=syslog
22
39
dependent_startup=true
40
+ dependent_startup_wait_for=rsyslogd:running
23
41
24
42
[program:syncd]
25
43
command=/usr/bin/syncd_start.sh
26
- priority=2
44
+ priority=3
27
45
autostart=false
28
46
autorestart=false
29
47
stdout_logfile=syslog
30
48
stderr_logfile=syslog
31
49
dependent_startup=true
32
- dependent_startup_wait_for=rsyslogd:running
50
+ dependent_startup_wait_for=start:exited
You can’t perform that action at this time.
0 commit comments