containerd/runtime/v2/shim
Erik Sipsma 48f46516ad Support disabling default setup of shim logger.
Before this change, the v2 runtime shim setup code was hardcoded to always
configure logrus to write logs to the "log" FIFO present in the current working
directory. This only happens in the "default" action codepath
(i.e. not shim start or shim delete).

This is problematic for shims that execute outside the current working
directory of a bundle. For example, it often doesn't make sense for shims that
manage multiple containers to execute in a single bundle directory. Additionally,
shim processes that require being pre-created, i.e. spun up before tasks they
will handle are actually created, won't have a log FIFO to write to until a task
is created.

This change leaves the default behavior as is but introduces a Binary Config
field that will optionally disable automatic configuration of logrus to use the
"log" FIFO. This allows shims to configure their own logger if necessary while
still re-using the rest of the shim helper code in containerd.

Signed-off-by: Erik Sipsma <sipsma@amazon.com>
2019-04-24 19:01:12 +00:00
..
dialer.go Add dialer for events service 2019-04-11 12:01:52 -04:00
publisher.go Requeue events in the shim publisher 2019-04-12 11:57:20 -04:00
reaper_unix.go Revert v2 dropped events 2018-11-16 11:34:15 -05:00
shim_darwin.go Abstract to SocketAddress 2018-07-27 12:39:53 -04:00
shim_freebsd.go Fix freebsd build 2018-12-16 14:27:42 +00:00
shim_linux.go Abstract to SocketAddress 2018-07-27 12:39:53 -04:00
shim_test.go Forward containerd debug to shim invocation 2018-09-27 07:46:01 -07:00
shim_unix.go Add dialer for events service 2019-04-11 12:01:52 -04:00
shim_windows_test.go Add blocking buffered writes to shim 2018-10-02 11:10:43 -07:00
shim_windows.go Add dialer for events service 2019-04-11 12:01:52 -04:00
shim.go Support disabling default setup of shim logger. 2019-04-24 19:01:12 +00:00
util_unix.go horten the unix socket path for shim 2019-03-15 11:58:30 +08:00
util_windows.go Include extension for shim binary format on Windows 2019-01-28 12:42:08 -08:00
util.go Add runc.v2 multi-shim 2019-02-21 11:09:46 -05:00