Skip to content

Commit

Permalink
switching dockerfiles based on SGX_ENABLED .env variable (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kss-espeo authored Aug 14, 2019
1 parent abc29e3 commit 978fc88
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include .env

all: copy-env
docker-compose up -d --build

Expand All @@ -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

0 comments on commit 978fc88

Please sign in to comment.