From 978fc88687758f14feade6fb7200176d4ece16e1 Mon Sep 17 00:00:00 2001 From: Krzysztof Spisak-Spisacki <50660061+kss-espeo@users.noreply.github.com> Date: Wed, 14 Aug 2019 14:34:00 +0200 Subject: [PATCH] switching dockerfiles based on SGX_ENABLED .env variable (#59) --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4f6c609..843c222 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +include .env + all: copy-env docker-compose up -d --build @@ -8,13 +10,14 @@ clean: docker-compose down local: copy-env +ifeq ($(SGX_ENABLED), true) + docker-compose -f docker-compose.sgx.yml -f docker-compose.local.yml up -d --build +else docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d --build +endif clean-local: docker-compose -f docker-compose.yml -f docker-compose.local.yml down ganache: docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d --build ganache-cli - -sgx: copy-env - docker-compose -f docker-compose.sgx.yml -f docker-compose.local.yml up -d --build