Skip to content

Commit 9144ca6

Browse files
Michael Steinerbvavala
authored andcommitted
Build dependency bug fix
Signed-off-by: Michael Steiner <[email protected]>
1 parent e203535 commit 9144ca6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docker/Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,16 @@ build_% : repository
7373
--tag pdo_$*:$(PDO_VERSION) \
7474
--file '$(DOCKER_DIR)'/pdo_$*.dockerfile .
7575

76-
sgx_build_services : $(IAS_CERTIFICATES) repository build_services_base
76+
# overwrite above build rules for SGX-dependent images
77+
rebuild_services_sgx : repository
78+
docker build $(DOCKER_ARGS) \
79+
--build-arg REBUILD=$(TIMESTAMP) \
80+
--build-arg PDO_VERSION=$(PDO_VERSION) \
81+
--build-arg SGX_MODE=HW \
82+
--tag pdo_services_sgx:$(PDO_VERSION) \
83+
--file $(DOCKER_DIR)/pdo_services.dockerfile .
84+
85+
build_services_sgx : $(IAS_CERTIFICATES) repository build_services_base
7786
docker build $(DOCKER_ARGS) \
7887
--build-arg PDO_VERSION=$(PDO_VERSION) \
7988
--build-arg SGX_MODE=HW \
@@ -168,7 +177,7 @@ test : clean_config clean_repository build_test stop_all
168177
PDO_VERSION=$(PDO_VERSION) docker-compose $(TEST_FILES) up --abort-on-container-exit
169178
PDO_VERSION=$(PDO_VERSION) docker-compose $(TEST_FILES) down
170179

171-
sgx_build_test : repository sgx_build_services build_ccf build_client
180+
sgx_build_test : repository build_services_sgx build_ccf build_client
172181

173182
sgx_keys :
174183
# Prepare sgx keys.

0 commit comments

Comments
 (0)