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
Tianon Gravi 9465272c28 Add new "validate-pkg" bundlescript
This helps ensure that `github.com/docker/docker/pkg/...` is actually safe to use in isolation (ie, doesn't import anything from `github.com/docker/docker` except other things from `pkg` or vendored dependencies).

Adding `github.com/docker/docker/utils` to the imports of `pkg/version/version.go`:

```
---> Making bundle: validate-pkg (in bundles/1.7.0-dev/validate-pkg)
These files import internal code: (either directly or indirectly)
 - pkg/version/version.go imports github.com/docker/docker/autogen/dockerversion
 - pkg/version/version.go imports github.com/docker/docker/utils
```

And then removing it again:

```
---> Making bundle: validate-pkg (in bundles/1.7.0-dev/validate-pkg)
Congratulations! "./pkg/..." is safely isolated from internal code.
```

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2015-06-12 12:28:23 -07:00
..
.build-deb Moving man pages out of docs 2015-06-10 13:43:35 -07:00
.build-rpm Moving man pages out of docs 2015-06-10 13:43:35 -07:00
.resources-windows Windows: Build docker.exe manifested and with icon 2015-06-04 11:49:10 -07:00
.dockerinit hack/make/test-integration-cli: introduce MAKEDIR variable 2015-04-15 10:44:14 +02:00
.dockerinit-gccgo Merge pull request #12376 from Mic92/refactor-hack 2015-04-22 12:12:44 -07:00
.ensure-emptyfs Move scripts back to hack/, leave docs in project/ 2015-03-13 14:04:08 -06:00
.ensure-frozen-images add unshare apparmor profile test 2015-05-20 14:06:00 -07:00
.ensure-httpserver Move scripts back to hack/, leave docs in project/ 2015-03-13 14:04:08 -06:00
.go-autogen Windows: Build docker.exe manifested and with icon 2015-06-04 11:49:10 -07:00
.go-compile-test-dir Move scripts back to hack/, leave docs in project/ 2015-03-13 14:04:08 -06:00
.integration-daemon-setup hack: explicit bundles for integration-cli prequisites 2015-06-09 07:22:26 +02:00
.integration-daemon-start hack: explicit bundles for integration-cli prequisites 2015-06-09 07:22:26 +02:00
.integration-daemon-stop add unshare apparmor profile test 2015-05-20 14:06:00 -07:00
.validate .: remove trailing white spaces 2015-03-25 13:38:17 -04:00
binary Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
build-deb Moving man pages out of docs 2015-06-10 13:43:35 -07:00
build-rpm Moving man pages out of docs 2015-06-10 13:43:35 -07:00
cover Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
cross Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
dynbinary Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
dyngccgo Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
gccgo Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
README.md Move scripts back to hack/, leave docs in project/ 2015-03-13 14:04:08 -06:00
test-docker-py hack: explicit bundles for integration-cli prequisites 2015-06-09 07:22:26 +02:00
test-integration-cli hack: explicit bundles for integration-cli prequisites 2015-06-09 07:22:26 +02:00
test-unit Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
tgz Make "DEST" a make.sh construct instead of ad-hoc 2015-05-30 11:16:43 -07:00
ubuntu Moving man pages out of docs 2015-06-10 13:43:35 -07:00
validate-dco hack/make/test-integration-cli: introduce MAKEDIR variable 2015-04-15 10:44:14 +02:00
validate-gofmt hack/make/test-integration-cli: introduce MAKEDIR variable 2015-04-15 10:44:14 +02:00
validate-pkg Add new "validate-pkg" bundlescript 2015-06-12 12:28:23 -07:00
validate-test Validate we're not using the old testing stuff 2015-04-23 10:29:47 -07:00
validate-toml hack/make/test-integration-cli: introduce MAKEDIR variable 2015-04-15 10:44:14 +02:00
validate-vet hack/make/test-integration-cli: introduce MAKEDIR variable 2015-04-15 10:44:14 +02: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 test
./hack/make.sh binary ubuntu

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

To add a bundle:

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