moby--moby/project/make
Ahmet Alp Balkan 2e95bb5f1a integ-cli: Implement remote FakeStorage server for build via URL tests
Implemented a FakeStorage alternative that supports spinning
up a remote container on DOCKER_TEST_HOST to serve files over
an offline-compiled Go static web server image so that tests which
use URLs in Dockerfile can build them over at the daemon side.

`fakeStorage` function now automatically chooses if it should
use a local httptest.Server or a remote container.

This fixes the following tests when running against a remote
daemon:

- `TestBuildCacheADD`
- `TestBuildCopyWildcardNoFind`
- `TestBuildCopyWildcardCache`
- `TestBuildADDRemoteFileWithCache`
- `TestBuildADDRemoteFileWithoutCache`
- `TestBuildADDRemoteFileMTime`
- `TestBuildADDLocalAndRemoteFilesWithCache`
- `TestBuildADDLocalAndRemoteFilesWithoutCache`
- `TestBuildFromURLWithF`
- `TestBuildApiDockerFileRemote`

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2015-03-09 12:03:55 -07:00
..
.dockerinit
.ensure-busybox
.ensure-emptyfs
.ensure-httpserver integ-cli: Implement remote FakeStorage server for build via URL tests 2015-03-09 12:03:55 -07:00
.go-autogen
.go-compile-test-dir
.integration-daemon-start
.integration-daemon-stop
.validate
README.md
binary
cover
cross
dynbinary
test-docker-py
test-integration
test-integration-cli integ-cli: Implement remote FakeStorage server for build via URL tests 2015-03-09 12:03:55 -07:00
test-unit
tgz
ubuntu
validate-dco
validate-gofmt
validate-toml

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:

./project/make.sh test
./project/make.sh binary ubuntu

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

To add a bundle:

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