Avi Deitcher
45e299ce91
Merge pull request #3848 from dgageot/remove-more-dead-code-pkg
...
Remove dead or redundant code (packages)
2022-10-10 20:55:02 +03:00
David Gageot
39807bb0bd
Remove dead or redundant code
...
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 15:33:42 +02:00
David Gageot
810c3e788f
Prefer nil empty slices
...
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 15:02:23 +02:00
David Gageot
d4e132021a
Remove 99% of deprecated ioutil usage
...
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 13:10:38 +02:00
David Gageot
998ad7eea1
Fix comments
...
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-08 22:41:20 +02:00
Avi Deitcher
0b39a484b1
containerd-dev separate
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-03-21 01:20:45 +02:00
David Scott
c4d7f5d993
service: handle creating cgroupv2 cgroups
...
These are easier to create than cgroupv1 cgroups as they are only a
single mkdir.
Detect which mode we are in by looking for the presence of the
cgroupv2-only cgroup.controllers file.
Signed-off-by: David Scott <dave@recoil.org>
2022-03-13 19:37:05 +00:00
Dave Tucker
fcaab549fe
init: Migrate to Go Modules
...
Moves vendoring over to Go modules.
Fixes issues found by Go Vet in Go 1.16
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2022-01-11 20:18:37 +00:00
Avi Deitcher
7549a63c9f
pkgs: Update packages to the latest linuxkit/alpine
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-11-09 14:02:42 +02:00
Tonis Tiigi
5af7c526ec
init: add support for cgroupv2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-10-24 23:03:51 -07:00
Avi Deitcher
ef3e45ac02
pkgs: Update packages to the latest linuxkit/alpine
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-28 09:13:18 +03:00
Avi Deitcher
203cbd9b9f
multiple containerd options
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-10-21 11:11:48 +03:00
Avi Deitcher
54be4048f0
fix reversed equals error
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-10-19 20:54:14 +03:00
Avi Deitcher
865ed8a1ce
add containerd cli opts
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-10-19 14:49:15 +03:00
Ilya Dmitrichenko
86fb6ba0aa
pkg/init: Mount /sys/fs/bpf
...
NOTE: This will be a shared mount, due to root being turned into a
shared with `MC_REC` set: `mount("", "/", "", rec|shared, "")`.
For some reason setting `shared` when mounting `/sys/fs/bpf` doesn't
work at all, perhaps that's just a kernel feature.
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
2020-05-06 11:06:54 +01:00
Rolf Neugebauer
2427145dfc
pkg/init: Revert "workaround bad containerd bug"
...
This reverts commit 6653c3387e
.
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-26 22:49:48 +01:00
Rolf Neugebauer
db1f9c8dc8
pkgs" Update containerd to v1.3.4
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-26 22:47:48 +01:00
Rolf Neugebauer
463216acda
pkg: Add gcc for all packages build for arm64
...
This is a workaround for https://github.com/linuxkit/linuxkit/issues/3496
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-17 10:36:03 +01:00
Rolf Neugebauer
2f4034d36c
pkgs: Update packages to the latest linuxkit/alpine
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-17 10:36:03 +01:00
Avi Deitcher
6653c3387e
workaround bad containerd bug
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-03-23 12:18:14 +02:00
Rolf Neugebauer
f14ad3af82
pkgs: Update to containerd v1.3.2
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-01-21 23:17:17 +00:00
Rolf Neugebauer
2018f5f499
Bump packages to new alpine w/ containerd v1.2.8
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2019-08-25 14:11:09 +01:00
Rolf Neugebauer
c0fcc3ddac
Bump packages to new alpine w/ containerd v1.2.7
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2019-06-28 01:56:20 +01:00
Rolf Neugebauer
53485a1f83
Bump packages to new alpine w/ containerd v1.2.6
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2019-04-14 11:29:08 +01:00
Ian Campbell
3510c792ea
Bump packages to new alpine w/ containerd v1.2.5
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2019-03-14 10:18:56 +00:00
Rolf Neugebauer
4fdad53190
pkgs: Update packages to the latest linuxkit/alpine
...
except for bpftrace, since it does not compile:
https://github.com/linuxkit/linuxkit/pull/3230
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2019-03-03 12:25:40 +00:00
Ian Campbell
39ee6c0e9b
Bump packages to new alpine w/ containerd v1.2.4
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2019-02-14 10:01:33 +00:00
Ian Campbell
61ff76a7e3
Bump packages to new alpine w/ containerd v1.2.3
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2019-02-11 09:47:37 +00:00
Tomas Knappek
63a6a60fed
Fixes linuxkit#3237: add support for named pipes to init
...
Signed-off-by: Tomas Knappek <tomas.knappek@gmail.com>
2019-02-07 10:37:15 -08:00
Ian Campbell
ed2dd46cd0
Bump packages to new alpine w/ containerd v1.2.2
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2019-01-08 11:52:42 +00:00
Ian Campbell
1292f7aa87
Bump packages to new alpine w/ containerd v1.2.0
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-10-30 10:53:47 +00:00
Ian Campbell
809d257502
Bump packages to new alpine w/ containerd v1.1.4
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-09-25 15:55:07 +01:00
Ian Campbell
ad556eab78
Bump packages to new alpine w/ containerd v1.1.3
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-08-30 13:40:00 +01:00
Rolf Neugebauer
21ff90c4c7
pkgs: Update packages to the latest linuxkit/alpine
...
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2018-07-26 20:03:09 +01:00
Rolf Neugebauer
358f1a812a
Merge pull request #3115 from justincormack/merge-moby-tool
...
Merge moby tool back into LinuxKit
2018-07-16 17:52:37 +01:00
Justin Cormack
cf5cec204d
Update LinuxKit for merge of moby tool
...
- use the mkimage hashes that we had in LinuxKit as more up to date than tool.
- update docs
- move the code from moby under src/cmd/linuxkit
Signed-off-by: Justin Cormack <justin@specialbusservice.com>
2018-07-16 14:22:15 +01:00
Ian Campbell
eb48b1284c
Bump packages to new alpine w/ containerd v1.1.2
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-07-16 10:29:41 +01:00
David Scott
7c243a8e8b
pkg/init: only create /var/log/onboot symlink if not using memlogd
...
When logging directly to files (the not-using-memlogd case) the onboot
services must log to /run/log because /var/log might be overmounted
by a persistent disk. Therefore we create a symlink at the end of
the onboot section.
When logging via memlogd, all logs are buffered until a logwrite service
starts, so no symlink is needed.
Signed-off-by: David Scott <dave.scott@docker.com>
2018-07-13 11:47:43 +01:00
David Scott
5201049f2c
pkg/init: write stderr to <name> rather than <name>.err
...
This will then be written to disk as <name>.log by logwrite.
Part of #3111
Signed-off-by: David Scott <dave.scott@docker.com>
2018-07-13 10:48:31 +01:00
Ian Campbell
18f11b2834
Bump packages to new alpine w/ containerd v1.1.1
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-07-10 09:53:11 +01:00
Rolf Neugebauer
6045ddaf51
pkg: Use alpine 3.8 version of go (no need for go1.10)
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@gmail.com>
2018-07-07 18:24:56 +01:00
Rolf Neugebauer
a9acdd827e
pkg: Update packages to latest alpine base
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@gmail.com>
2018-07-07 18:05:29 +01:00
David Scott
f4bbce7a6c
service: use the logging system with runc
...
If external logging is enabled, this patch sets the stdout and stderr
of the `runc` invocations to one end of a socketpair and the other end is
sent to the logging service. Otherwise we log to files as before.
Signed-off-by: David Scott <dave.scott@docker.com>
2018-07-06 21:49:21 +01:00
David Scott
4dc75bc67b
service: use the logging system with containerd
...
An external logging system exists if the socket
/var/run/linuxkit-external-logging.sock
exists.
If an external logging system is enabled then create FIFOs for
containerd and send the other end of the FIFOs to the logging service.
Otherwise use /var/log files as before.
Signed-off-by: David Scott <dave.scott@docker.com>
2018-07-06 21:48:57 +01:00
Ian Campbell
34666cd87d
Bump packages to new alpine w/ containerd v1.1.0-rc.2
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-06-28 17:35:04 +01:00
Ian Campbell
90f7d1bed9
Bump packages to new alpine w/ containerd v1.1.1-rc.1
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-06-19 16:01:20 +01:00
Justin Barrick
9821180548
Add a restart and stop command to service.
...
Signed-off-by: justinbarrick <jbarrick@cloudflare.com>
2018-06-12 15:04:16 -07:00
Krister Johansen
16604bc039
Reboot should reboot instead of powering off.
...
When busybox's reboot processing occurs in init, it runs all SHUTDOWN
actions that are defined in inittab. Once those are complete, it will
trigger either a halt, poweroff, or reboot, depending upon what signal
is received. The mechanism that's used to shell out through inittab
does not allow us to pass through exactly which invocation was
requested.
Due to the way that rc.shutdown works, it invokes the poweroff action
for any and all SHUTDOWN callbacks, whether they're a reboot, poweroff,
or halt. Instead of handling the reboot(2) syscall in rc.shutdown,
return after killing and unmounting and let busybox's init process
decide which reboot(2) action to use.
Signed-off-by: Krister Johansen <krister.johansen@oracle.com>
2018-06-11 08:29:08 -07:00
Ian Campbell
525ff1c1a8
Bump packages to new alpine w/ containerd v1.1.1-rc.0
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-06-01 14:09:05 +01:00
Rolf Neugebauer
1de059188b
pkgs: Update packages to latest alpine base
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@gmail.com>
2018-05-12 13:18:03 +01:00