OpenSearch/distribution/docker
Rory Hunter 24f7d4e83b
Add Docker packaging tests on 7.x (#48857)
Backport of #46599 and #47640. Add packaging tests for Docker.

* Introduce packaging tests for Docker (#46599)

Closes #37617. Add packaging tests for our Docker images, similar to what
we have for RPMs or Debian packages. This works by running a container and
probing it e.g. via `docker exec`. Test can also be run in Vagrant, by
exporting the Docker images to disk and loading them again in VMs. Docker
is installed via `Vagrantfile` in a selection of boxes.

* Only define Docker pkg tests if Docker is available (#47640)

Closes #47639, and unmutes tests that were muted in b958467.

The Docker packaging tests were being defined irrespective of whether
Docker was actually available in the current environment. Instead,
implement exclude lists so that in environments where Docker is not
available, no Docker packaging tests are defined. For CI hosts, the build
checks `.ci/dockerOnLinuxExclusions`. The Vagrant VMs can defined the
extension property `shouldTestDocker` property to opt-in to packaging
tests.

As part of this, define a seperate utility class for checking Docker,
and call that instead of defining checks in-line in BuildPlugin.groovy
2019-11-05 15:17:59 +00:00
..
docker-build-context Add UBI-based Docker images (#48710) 2019-10-30 19:07:07 -04:00
docker-export Add Docker packaging tests on 7.x (#48857) 2019-11-05 15:17:59 +00:00
oss-docker-build-context Add UBI-based Docker images (#48710) 2019-10-30 19:07:07 -04:00
oss-docker-export Add Docker packaging tests on 7.x (#48857) 2019-11-05 15:17:59 +00:00
oss-ubi-docker-build-context Fix names of UBI-based Docker image build contexts 2019-11-01 17:29:15 -04:00
src Add UBI-based Docker images (#48710) 2019-10-30 19:07:07 -04:00
ubi-docker-build-context Fix names of UBI-based Docker image build contexts 2019-11-01 17:29:15 -04:00
build.gradle Add Docker packaging tests on 7.x (#48857) 2019-11-05 15:17:59 +00:00
docker-compose.yml Run some REST tests against a cluster running in docker containers (#39515) 2019-07-11 15:28:33 +03:00
docker-test-entrypoint.sh Run some REST tests against a cluster running in docker containers (#39515) 2019-07-11 15:28:33 +03:00