Update osmo-*/Dockerfile to log stdout+stderr of process to log file

This way we get VTY parsing failures as well as backtraces upon process
crash.

Related: OS#4212
Change-Id: I9493ff73ef27c7c6d32b00cf827704b3f9cbf86a
This commit is contained in:
Pau Espin 2019-11-13 15:26:45 +01:00 committed by laforge
parent f19670453d
commit a9877bf487
29 changed files with 34 additions and 133 deletions

View File

@ -29,6 +29,6 @@ VOLUME /data
COPY osmo-bsc.cfg /data/osmo-bsc.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-bsc", "-c", "/data/osmo-bsc.cfg"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-bsc -c /data/osmo-bsc.cfg >/data/osmo-bsc.log 2>&1"]
EXPOSE 3003 3002 4242

View File

@ -44,6 +44,6 @@ VOLUME /data
COPY osmo-bsc.cfg /data/osmo-bsc.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-bsc"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-bsc -c /data/osmo-bsc.cfg >/data/osmo-bsc.log 2>&1"]
#EXPOSE

View File

@ -33,6 +33,6 @@ COPY osmo-bts.cfg /data/osmo-bts.cfg
WORKDIR /data
# send GSMTAP data to .230 which is the ttcn3-sysinfo test
CMD ["/usr/bin/osmo-bts-virtual", "-i", "172.18.0.230"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-bts-virtual -c /data/osmo-bts.cfg -i 172.18.0.230 >>/data/osmo-bts-virtual.log 2>&1"]
#EXPOSE

View File

@ -46,6 +46,6 @@ COPY osmo-bts.cfg /data/osmo-bts.cfg
WORKDIR /data
# send GSMTAP data to .230 which is the ttcn3-sysinfo test
CMD ["/usr/local/bin/osmo-bts-virtual", "-i", "172.18.0.230"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-bts-virtual -c /data/osmo-bts.cfg -i 172.18.0.230 >>/data/osmo-bts-virtual.log 2>&1"]
#EXPOSE

View File

@ -27,6 +27,6 @@ VOLUME /data
COPY osmo-ggsn.cfg /data/osmo-ggsn.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-ggsn"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-ggsn -c /data/osmo-ggsn.cfg >/data/osmo-ggsn.log 2>&1"]
EXPOSE 3386/udp 2123/udp 2152/udp 4257/tcp 4260/tcp

View File

@ -2,38 +2,11 @@
! OpenGGSN (0.94.1-adac) configuration saved from vty
!!
!
log file /data/openggsn.log
logging filter all 1
logging color 0
logging print category 1
logging timestamp 1
logging level ip info
logging level tun info
logging level ggsn info
logging level sgsn notice
logging level icmp6 debug
logging level lglobal notice
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp info
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 notice
logging level lsccp notice
logging level lsua notice
logging level lm3ua notice
logging level lmgcp notice
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging print category 1
logging timestamp 1
logging level ip info
logging level tun info
logging level ggsn info

View File

@ -38,6 +38,6 @@ VOLUME /data
COPY osmo-ggsn.cfg /data/osmo-ggsn.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-ggsn"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-ggsn -c /data/osmo-ggsn.cfg >/data/osmo-ggsn.log 2>&1"]
EXPOSE 3386/udp 2123/udp 2152/udp 4257/tcp 4260/tcp

View File

@ -2,38 +2,11 @@
! OpenGGSN (0.94.1-adac) configuration saved from vty
!!
!
log file /data/openggsn.log
logging filter all 1
logging color 0
logging print category 1
logging timestamp 1
logging level ip info
logging level tun info
logging level ggsn info
logging level sgsn notice
logging level icmp6 debug
logging level lglobal notice
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp info
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 notice
logging level lsccp notice
logging level lsua notice
logging level lm3ua notice
logging level lmgcp notice
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging print category 1
logging timestamp 1
logging level ip info
logging level tun info
logging level ggsn info

View File

@ -28,6 +28,6 @@ VOLUME /data
COPY osmo-hlr.cfg /data/osmo-hlr.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-hlr"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-hlr -c /data/osmo-hlr.cfg >/data/osmo-hlr.log 2>&1"]
EXPOSE 4222 4258 4259

View File

@ -42,6 +42,6 @@ VOLUME /data
COPY osmo-hlr.cfg /data/osmo-hlr.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-hlr"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-hlr -c /data/osmo-hlr.cfg >/data/osmo-hlr.log 2>&1"]
#EXPOSE

View File

@ -27,4 +27,4 @@ VOLUME /data
COPY osmo-hnbgw.cfg /data/osmo-hnbgw.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-hnbgw", "-c", "/data/osmo-hnbgw.cfg"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-hnbgw -c /data/osmo-hnbgw.cfg >/data/osmo-hnbgw.log 2>&1"]

View File

@ -43,4 +43,4 @@ VOLUME /data
COPY osmo-hnbgw.cfg /data/osmo-hnbgw.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-hnbgw", "-c", "/data/osmo-hnbgw.cfg"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-hnbgw -c /data/osmo-hnbgw.cfg >/data/osmo-hnbgw.log 2>&1"]

View File

@ -28,4 +28,4 @@ VOLUME /data
COPY osmo-mgw.cfg /data/osmo-mgw.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-mgw"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-mgw -c /data/osmo-mgw.cfg >/data/osmo-mgw.log 2>&1"]

View File

@ -6,7 +6,7 @@ log stderr
logging filter all 1
logging color 1
logging print category 1
logging timestamp 0
logging timestamp 1
logging level all everything
logging level rtp notice
logging level lglobal notice

View File

@ -43,4 +43,4 @@ VOLUME /data
COPY osmo-mgw.cfg /data/osmo-mgw.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-mgw"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-mgw -c /data/osmo-mgw.cfg >/data/osmo-mgw.log 2>&1"]

View File

@ -29,6 +29,6 @@ VOLUME /data
COPY osmo-msc.cfg /data/osmo-msc.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-msc"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-msc -c /data/osmo-msc.cfg >/data/osmo-msc.log 2>&1"]
#EXPOSE

View File

@ -49,6 +49,6 @@ VOLUME /data
COPY osmo-msc.cfg /data/osmo-msc.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-msc"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-msc -c /data/osmo-msc.cfg >/data/osmo-msc.log 2>&1"]
#EXPOSE

View File

@ -31,6 +31,6 @@ COPY osmo-bsc-nat.cfg /data/osmo-bsc-nat.cfg
COPY bscs.config /data/bscs.config
WORKDIR /data
CMD ["/usr/bin/osmo-nitb"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-nitb -c /data/osmo-nitb.cfg >/data/osmo-nitb.log 2>&1"]
EXPOSE 3002/tcp 3003/tcp 4242/tcp 2775/tcp 4249/tcp

View File

@ -46,6 +46,6 @@ COPY osmo-bsc-nat.cfg /data/osmo-bsc-nat.cfg
COPY bscs.config /data/bscs.config
WORKDIR /data
CMD ["/usr/local/bin/osmo-nitb"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-nitb -c /data/osmo-nitb.cfg >/data/osmo-nitb.log 2>&1"]
EXPOSE 3002/tcp 3003/tcp 4242/tcp 2775/tcp 4249/tcp

View File

@ -33,6 +33,6 @@ VOLUME /data
#COPY osmo-bts.cfg /data/osmo-bts.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-resmim-server"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-resmim-server >/data/osmo-resmim-server.log 2>&1"]
#EXPOSE

View File

@ -48,6 +48,6 @@ VOLUME /data
#COPY osmo-bts.cfg /data/osmo-bts.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-resmim-server"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-resmim-server >/data/osmo-resmim-server.log 2>&1"]
#EXPOSE

View File

@ -27,6 +27,6 @@ VOLUME /data
COPY osmo-sgsn.cfg /data/osmo-sgsn.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-sgsn"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-sgsn -c /data/osmo-sgsn.cfg >/data/osmo-sgsn.log 2>&1"]
EXPOSE 23000/udp 4245/tcp 4249/tcp

View File

@ -48,6 +48,6 @@ VOLUME /data
COPY osmo-sgsn.cfg /data/osmo-sgsn.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-sgsn"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-sgsn -c /data/osmo-sgsn.cfg >/data/osmo-sgsn.log 2>&1"]
EXPOSE 23000/udp 4245/tcp 4249/tcp

View File

@ -27,6 +27,6 @@ VOLUME /data
COPY osmo-sip-connector.cfg /data/osmo-sip-connector.cfg
WORKDIR /data
CMD ["/usr/bin/osmo-sip-connector"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-sip-connector -c /data/osmo-sip-connector.cfg >/data/osmo-sip-connector.log 2>&1"]
#EXPOSE

View File

@ -48,6 +48,6 @@ VOLUME /data
COPY osmo-sip-connector.cfg /data/osmo-sip-connector.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-sip-connector"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-sip-connector -c /data/osmo-sip-connector.cfg >/data/osmo-sip-connector.log 2>&1"]
#EXPOSE

View File

@ -26,6 +26,6 @@ WORKDIR /tmp
VOLUME /data
COPY osmo-stp.cfg /data/
CMD ["/usr/bin/osmo-stp", "-c", "/data/osmo-stp.cfg"]
CMD ["/bin/sh", "-c", "/usr/bin/osmo-stp -c /data/osmo-stp.cfg >/data/osmo-stp.log 2>&1"]
EXPOSE 2905 14001 4239

View File

@ -2,32 +2,9 @@
! osmo-stp (0.0.6.3.179-b248) configuration saved from vty
!!
!
log stderr
logging filter all 1
logging color 1
logging print category 1
logging timestamp 0
logging level all everything
logging level lglobal notice
logging level llapd notice
logging level linp debug
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp notice
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 debug
logging level lsccp debug
logging level lsua debug
logging level lm3ua debug
log file /data/osmo-stp.log
logging filter all 1
logging color 0
logging print category 1
logging timestamp 1
logging level all everything
logging level lglobal notice

View File

@ -38,6 +38,6 @@ VOLUME /data
COPY osmo-stp.cfg /data/
CMD ["/usr/local/bin/osmo-stp", "-c", "/data/osmo-stp.cfg"]
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-stp -c /data/osmo-stp.cfg >/data/osmo-stp.log 2>&1"]
EXPOSE 2905 14001 4239

View File

@ -6,28 +6,6 @@ log stderr
logging filter all 1
logging color 1
logging print category 1
logging timestamp 0
logging level all everything
logging level lglobal notice
logging level llapd notice
logging level linp debug
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp notice
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 debug
logging level lsccp debug
logging level lsua debug
logging level lm3ua debug
log file /data/osmo-stp.log
logging filter all 1
logging color 0
logging print category 1
logging timestamp 1
logging level all everything
logging level lglobal notice