1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/hack/make
Sebastiaan van Stijn ec0e20a9eb 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>
(cherry picked from commit 48353e16fe)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2019-10-02 17:42:41 +00:00
..
.resources-windows Windows: Support running dockerd as a service 2016-04-26 14:04:47 -07:00
.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 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 Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
.go-autogen.ps1 PowerShell: remove aliases, use their real commands instead 2018-12-22 21:34:39 +01: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-19 19:53:47 +02:00
.integration-daemon-stop hack: unmount leftover daemon root folders 2019-08-19 18:57:58 +02:00
.integration-test-helpers integration-cli: move each test suite to its own TestX testing function 2019-09-26 23:52:51 +02: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-09-25 21:35:58 +02:00
build-integration-test-binary hack: remove integration-cli-on-swarm 2019-08-19 18:54:38 +02: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-19 19:53:47 +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
README.md Remove test-unit from hack/make 2017-07-17 11:39:33 -04: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:42:41 +00:00
test-integration integration: simplify parallel run destination 2019-09-25 21:35:50 +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-31 13:27:33 +02:00
test-integration-shell Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00

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