From 5f430a1fc3aa45ac13b3d15c7f8769ff40895c30 Mon Sep 17 00:00:00 2001 From: Jose Duran Date: Fri, 2 Aug 2019 11:42:44 -0500 Subject: [PATCH] add makefile entries to use docker-compose ES5 containers --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile b/Makefile index d6b4d7e..9693099 100644 --- a/Makefile +++ b/Makefile @@ -82,3 +82,25 @@ module-touch: upload: stack upload --no-signature . + +# Create ES5 instance + +## Run test environment +compose-ES5: + @LOCAL_USER_ID=${LOCAL_USER_ID} docker-compose -f tests/ES5/docker-compose.yml --project-directory tests/ES5/ up + +## Run test environment in detach mode +compose-ES5-detach-up: + @LOCAL_USER_ID=${LOCAL_USER_ID} docker-compose -f tests/ES5/docker-compose.yml --project-directory tests/ES5/ up -d + +## Close test environment if run on detach mode +compose-ES5-detach-down: + @LOCAL_USER_ID=${LOCAL_USER_ID} docker-compose -f tests/ES5/docker-compose.yml --project-directory tests/ES5/ down + +## build the docker compose images +compose-build: + @LOCAL_USER_ID=${LOCAL_USER_ID} docker-compose -f tests/ES5/docker-compose.yml --project-directory tests/ES5/ build + +## Spawn bash shell in ES5 test container +ES5-shell: + @LOCAL_USER_ID=${LOCAL_USER_ID} docker-compose -f tests/ES5/docker-compose.yml --project-directory tests/ES5/ exec elasticsearch1 bash