moby--moby/hack/make
Sebastiaan van Stijn 7bfe48cc00
Bump docker-py to 4.0.2, and run tests from upstream repository
This removes all the installation steps for docker-py from the
Dockerfile, and instead builds the upstream Dockerfile, and runs
docker-py tests in a container.

To test;

```
make test-docker-py

...

Removing bundles/

---> Making bundle: dynbinary (in bundles/dynbinary)
Building: bundles/dynbinary-daemon/dockerd-dev
Created binary: bundles/dynbinary-daemon/dockerd-dev

---> Making bundle: test-docker-py (in bundles/test-docker-py)
---> Making bundle: .integration-daemon-start (in bundles/test-docker-py)
Using test binary docker
Starting dockerd
INFO: Waiting for daemon to start...
.
INFO: Building docker-sdk-python3:3.7.0...
sha256:686428ae28479e9b5c8fdad1cadc9b7a39b462e66bd13a7e35bd79c6a152a402
INFO: Starting docker-py tests...
============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-4.1.0, py-1.8.0, pluggy-0.9.0
rootdir: /src, inifile: pytest.ini
plugins: timeout-1.3.3, cov-2.6.1
collected 359 items

tests/integration/api_build_test.py .......s....
....
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-07-16 14:34:46 +02:00
..
.resources-windows
.binary Add support for setting GOARM in cross target. 2019-04-17 13:19:14 -07:00
.binary-setup rootless: expose ports automatically 2019-03-21 02:44:08 +09:00
.detect-daemon-osarch
.ensure-emptyfs
.go-autogen Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
.go-autogen.ps1
.integration-daemon-setup
.integration-daemon-start make test-integration: use correct dockerd binary 2019-02-18 22:20:49 -08:00
.integration-daemon-stop
.integration-test-helpers Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
README.md
binary
binary-daemon rootless: expose ports automatically 2019-03-21 02:44:08 +09:00
build-integration-test-binary hack: remove integration-cli-on-swarm 2019-06-01 04:45:26 +09:00
containerutility
cross Add support for setting GOARM in cross target. 2019-04-17 13:19:14 -07:00
cross-platform-dependent Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
dynbinary
dynbinary-daemon
install-binary rootless: expose ports automatically 2019-03-21 02:44:08 +09:00
run Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
test-docker-py Bump docker-py to 4.0.2, and run tests from upstream repository 2019-07-16 14:34:46 +02:00
test-integration Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
test-integration-cli
test-integration-flaky hack: Have TIMEOUT take -test.count into account when testing for flakiness 2019-02-08 18:36:31 +00:00
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