logstash/ci/docker_update_base_image.sh
Jake Landis 1340f2eee0 Introduce docker for CI builds.
This commit includes:
* A base Dockerfile and script to push to a Docker repo
* A per-build Dockerfile (derived from the base)
* Updates to the test scripts to allow for more parallel builds
* Docker wrappers for the tests scripts
* Update for the integration test readme to manually run the tests
* Clean up the output of the Java tests
* Remove offline tag for tests (no longer needed that we don't use docker dependent services)

This commit does NOT include:
* Changes needed for the CI system to use Docker

Fixes #8223
2017-09-14 18:55:41 +00:00

12 lines
588 B
Bash
Executable file

#!/bin/bash -ie
if docker rmi --force logstash-base ; then
echo "Removed existing logstash-base image, building logstash-base image from scratch."
else
echo "Building logstash-base image from scratch." #Keep the global -e flag but allow the remove command to fail.
fi
docker build -f Dockerfile.base -t logstash-base .
docker login --username=logstashci container-registry-test.elastic.co #will prompt for password
docker tag logstash-base container-registry-test.elastic.co/logstash-test/logstash-base
docker push container-registry-test.elastic.co/logstash-test/logstash-base