From 7b0ddd5b739e1dbe8296296176b89aa5cab0faea Mon Sep 17 00:00:00 2001 From: Mikhail Filimonov <1549571+filimonov@users.noreply.github.com> Date: Wed, 15 May 2019 16:15:34 +0200 Subject: [PATCH] Committing missed Makefile for tests --- .../001_miltiple_disks/Makefile | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dbms/tests/integration_drafts/001_miltiple_disks/Makefile diff --git a/dbms/tests/integration_drafts/001_miltiple_disks/Makefile b/dbms/tests/integration_drafts/001_miltiple_disks/Makefile new file mode 100644 index 00000000000..19a2abdb41e --- /dev/null +++ b/dbms/tests/integration_drafts/001_miltiple_disks/Makefile @@ -0,0 +1,42 @@ +docker_compose_version := $(shell echo $$(uname -s)-$$(uname -m)) + +run: + docker-compose up -d + +install_docker: + @echo "" + @echo "Please remember that you need to call it with sudo!!" + @echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + @echo "" + -curl -sSL https://get.docker.com | bash + -usermod -aG docker $${USER} + @echo "$${USER} has been added to docker group. Please relogin" + +install_docker_compose: + @echo "" + @echo "Please remember that you need to call it with sudo!!" + @echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + @echo "" + -curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(docker_compose_version)" -o /usr/local/bin/docker-compose + -chmod +x /usr/local/bin/docker-compose + +ch1_shell: + docker-compose exec ch1 bash + +ch2_shell: + docker-compose exec ch2 bash + +stop: + docker-compose down + +logs: + docker-compose logs -f + +cleanup: + docker-compose down --rmi local --remove-orphans -v + +cleanup_all: + docker container stop $$(docker container ls -a -q) + docker system prune --volumes + docker image prune --all +