moby--moby/hack/make
Sebastiaan van Stijn 037b4c0e8e
docker-py: skip CreateContainerTest::test_create_with_device_cgroup_rules
This test is verifying that the container has the right options set (through
`docker inspect`), but also checks if the cgroup-rules are set within the container
by reading `/sys/fs/cgroup/devices/devices`

Unlike cgroups v1, on cgroups v2, there is no file interface, and rules are handled
through ebpf, which means that the test will fail because this file is not present.

From the Linux documentation for cgroups v2: https://github.com/torvalds/linux/blob/v5.16/Documentation/admin-guide/cgroup-v2.rst#device-controller

> (...)
> Device controller manages access to device files. It includes both creation of
> new device files (using mknod), and access to the existing device files.
>
> Cgroup v2 device controller has no interface files and is implemented on top of
> cgroup BPF. To control access to device files, a user may create bpf programs
> of type BPF_PROG_TYPE_CGROUP_DEVICE and att>

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-01-20 11:11:22 +01:00
..
.resources-windows
.binary Add s390x to cross platforms target 2021-06-24 18:52:55 +02:00
.detect-daemon-osarch
.ensure-emptyfs
.go-autogen info: remove "expected" check for tini version 2021-08-23 13:25:14 +02:00
.go-autogen.ps1
.install Fixup libnetwork lint errors 2021-06-01 23:48:32 +00:00
.integration-daemon-setup
.integration-daemon-start Disable manifest v2 schema 1 push 2020-07-31 20:13:58 +02:00
.integration-daemon-stop
.integration-test-helpers Pass through GOCACHE to test_env 2020-10-27 19:50:03 +00:00
README.md
binary Move proxy build into hack/make 2021-06-01 22:14:06 +00:00
binary-daemon Move proxy build into hack/make 2021-06-01 22:14:06 +00:00
binary-proxy Move proxy CLI to main cmd/ 2021-06-25 18:01:55 +02:00
build-integration-test-binary
containerutility
cross Add s390x to cross platforms target 2021-06-24 18:52:55 +02:00
cross-platform-dependent
dynbinary Move proxy build into hack/make 2021-06-01 22:14:06 +00:00
dynbinary-daemon Move proxy build into hack/make 2021-06-01 22:14:06 +00:00
dynbinary-proxy Move proxy CLI to main cmd/ 2021-06-25 18:01:55 +02:00
install-binary Ensure docker-proxy is installed in unit-test ci 2021-06-01 22:14:31 +00:00
install-proxy Fixup libnetwork lint errors 2021-06-01 23:48:32 +00:00
run
test-docker-py docker-py: skip CreateContainerTest::test_create_with_device_cgroup_rules 2022-01-20 11:11:22 +01:00
test-integration hack: add more debugging to understand exit codepath 2020-05-27 23:40:11 +00:00
test-integration-cli
test-integration-flaky
test-integration-shell

README.md

This directory holds scripts called by make.sh in the parent directory.

Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:

./hack/make.sh binary ubuntu

# Or to run all default bundles:
./hack/make.sh

To add a bundle:

  • Create a shell-compatible file here
  • Add it to $DEFAULT_BUNDLES in make.sh