moby--moby/hack/make
Sebastiaan van Stijn 48353e16fe
Temporarily switch docker-py to "master"
The docker-py tests were broken, because the version of
py-test that was used, used a dependency that had a new
major release with a breaking change.

Unfortunately, it was not pinned to a specific version,
so when the dependency did the release, py-test broke;

```
22:16:47  Traceback (most recent call last):
22:16:47    File "/usr/local/bin/pytest", line 10, in <module>
22:16:47      sys.exit(main())
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main
22:16:47      config = _prepareconfig(args, plugins)
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig
22:16:47      config = get_config()
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 156, in get_config
22:16:47      pluginmanager.import_plugin(spec)
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 530, in import_plugin
22:16:47      __import__(importspec)
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 25, in <module>
22:16:47      class TempPathFactory(object):
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
22:16:47      lambda p: Path(os.path.abspath(six.text_type(p)))
22:16:47  TypeError: attrib() got an unexpected keyword argument 'convert'
```

docker-py master has a fix for this (bumping the version of
`py-test`), but it's not in a release yet, and the docker cli that's used
in our CI is pinned to 17.06, which doesn't support building from a remote
git repository from a specific git commit.

To fix the immediate situation, this patch switches the docker-py
tests to run from the master branch.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-02 17:54:48 +02:00
..
.resources-windows hack/make: remove autogen resources for Docker CLI 2019-09-11 15:16:07 +02:00
.binary imporve hardcoded CC on cross compile 2019-07-17 17:42:14 +08:00
.binary-setup rootless: expose ports automatically 2019-03-21 02:44:08 +09:00
.detect-daemon-osarch Revert "Bash scripts; use double brackets, fix bare variables, add quotes" 2019-01-10 02:23:38 +01:00
.ensure-emptyfs Revert "Bash scripts; use double brackets, fix bare variables, add quotes" 2019-01-10 02:23:38 +01:00
.go-autogen hack/make: remove autogen resources for Docker CLI 2019-09-11 15:16:07 +02:00
.go-autogen.ps1 hack/make: remove autogen resources for Docker CLI 2019-09-11 15:16:07 +02:00
.integration-daemon-setup Revert "Bash scripts; use double brackets, fix bare variables, add quotes" 2019-01-10 02:23:38 +01:00
.integration-daemon-start hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
.integration-daemon-stop hack: unmount leftover daemon root folders 2019-08-12 20:41:03 +00:00
.integration-test-helpers integration-cli: move each test suite to its own TestX testing function 2019-09-18 18:26:36 +00:00
README.md Remove test-unit from hack/make 2017-07-17 11:39:33 -04:00
binary Remove cmd/docker and other directories in cli/ in accordance with the new Moby project scope 2017-05-05 12:14:29 -07:00
binary-daemon hack/make/binary-daemon: fix some linting issues 2019-08-31 12:12:25 +02:00
build-integration-test-binary hack: remove integration-cli-on-swarm 2019-06-01 04:45:26 +09:00
containerutility Add ADD/COPY --chown flag support to Windows 2018-08-13 21:59:11 -07:00
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 hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
dynbinary-daemon Add osusergo build tar for static binaries 2018-07-19 12:25:46 +03:00
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 Temporarily switch docker-py to "master" 2019-10-02 17:54:48 +02:00
test-integration integration: simplify parallel run destination 2019-09-11 17:18:38 +02:00
test-integration-cli Fixed typo DEREPCATED -> DEPRECATED. 2017-12-29 06:39:09 -05:00
test-integration-flaky Improve integration test detecetor 2019-08-07 08:43:43 -07:00
test-integration-shell Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00

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