SumoLogic / sumologic-collector-docker

A Sumo Logic collector for Docker.
Apache License 2.0
69 stars 55 forks source link

Upgrade Ubuntu to 18.04 #80

Closed guptakeshav-sumo closed 5 years ago

guptakeshav-sumo commented 5 years ago
  1. --force-yes flag has been deprecated. And as suggested in https://manpages.debian.org/stretch/apt/apt-get.8.en.html , replaced by --allow-downgrades --allow-remove-essential --allow-change-held-packages

  2. Added a command in Dockerfile to install apt-utils to suppress the warning debconf: delaying package configuration, since apt-utils is not installed which was coming whenever a apt-get command was made in the container shell. Though this log line seems to be harmless (tried the collector without installing it and it worked fine, and also made some google search), but still added to avoid this log. It is adding an overhead of about 1mb in the image. And it was installed by default in the previous image (Ubuntu 14.04 base image).

  3. The extra space in one of keys of the associative array seemed to be causing some issue. So removed that.

TESTING: Tested the collector by updating the sumo-sources.json to ingest Docker logs, Docker Stats, Local file, TCP/UDP data (by using netcat utility), and running the container, and verifying the logs on Long.