Skip to content

Commit

Permalink
Merge pull request #2518 from linggao/issue2232_take2
Browse files Browse the repository at this point in the history
Issue 2232 part 4 - use e2edev tag for css so that all-in-one hub wil…
  • Loading branch information
linggao authored May 20, 2021
2 parents 678b787 + d0b3208 commit 2513846
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ DOCKER_REG_PW := testpassword
# css
DOCKER_CSS_CNAME := css-api
DOCKER_CSS_INAME := openhorizon/$(arch)_cloud-sync-service
DOCKER_CSS_TAG := testing$(BRANCH_NAME)
DOCKER_CSS_TAG := e2edev
CSS_URL ?= https://css-api:8080

#css DB
Expand Down Expand Up @@ -409,7 +409,17 @@ get-agbot-image:
fi \
fi

run-mgmthub: get-agbot-image get-anax-images
get-css-image:
if [[ "$(DOCKER_CSS_TAG)" == "e2edev" ]]; then \
if [[ "$(shell docker images -q $(DOCKER_CSS_INAME):$(DOCKER_CSS_TAG) 2>/dev/null)" == "" ]]; then \
echo -e "Building css image $(DOCKER_CSS_INAME):$(DOCKER_CSS_TAG)"; \
cd $(ANAX_SOURCE) && make css-docker-image; \
docker tag $(DOCKER_CSS_INAME):testing $(DOCKER_CSS_INAME):e2edev; \
fi \
fi


run-mgmthub: get-agbot-image get-css-image get-anax-images
@echo "Starting all-in-one management hub"
export EXCHANGE_ROOT_PW=$(EXCH_ROOTPW) EXCHANGE_IMAGE_TAG=$(DOCKER_EXCH_TAG) EXCHANGE_DATABASE=$(EXCHDB_NAME); \
export EXCHANGE_HUB_ADMIN_PW=$(EXCHANGE_HUB_ADMIN_PW) EXCHANGE_SYSTEM_ADMIN_PW=$(EXCHANGE_SYSTEM_ADMIN_PW); \
Expand Down

0 comments on commit 2513846

Please sign in to comment.