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
changes/63/16063/2
Pau Espin 3 years ago committed by laforge
parent f19670453d
commit a9877bf487
  1. 2
      osmo-bsc-latest/Dockerfile
  2. 2
      osmo-bsc-master/Dockerfile
  3. 4
      osmo-bts-latest/Dockerfile
  4. 4
      osmo-bts-master/Dockerfile
  5. 2
      osmo-ggsn-latest/Dockerfile
  6. 31
      osmo-ggsn-latest/osmo-ggsn.cfg
  7. 2
      osmo-ggsn-master/Dockerfile
  8. 31
      osmo-ggsn-master/osmo-ggsn.cfg
  9. 2
      osmo-hlr-latest/Dockerfile
  10. 4
      osmo-hlr-master/Dockerfile
  11. 2
      osmo-hnbgw-latest/Dockerfile
  12. 2
      osmo-hnbgw-master/Dockerfile
  13. 2
      osmo-mgw-latest/Dockerfile
  14. 2
      osmo-mgw-latest/osmo-mgw.cfg
  15. 2
      osmo-mgw-master/Dockerfile
  16. 4
      osmo-msc-latest/Dockerfile
  17. 4
      osmo-msc-master/Dockerfile
  18. 2
      osmo-nitb-latest/Dockerfile
  19. 2
      osmo-nitb-master/Dockerfile
  20. 2
      osmo-remsim-latest/Dockerfile
  21. 2
      osmo-remsim-master/Dockerfile
  22. 2
      osmo-sgsn-latest/Dockerfile
  23. 2
      osmo-sgsn-master/Dockerfile
  24. 2
      osmo-sip-latest/Dockerfile
  25. 2
      osmo-sip-master/Dockerfile
  26. 2
      osmo-stp-latest/Dockerfile
  27. 23
      osmo-stp-latest/osmo-stp.cfg
  28. 2
      osmo-stp-master/Dockerfile
  29. 22
      osmo-stp-master/osmo-stp.cfg

@ -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

@ -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

@ -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
#EXPOSE

@ -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
#EXPOSE

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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
#EXPOSE

@ -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"]

@ -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"]

@ -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"]

@ -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

@ -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"]

@ -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
#EXPOSE

@ -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
#EXPOSE

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save