File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11LOCATION ?= {{ .region }}
22ARO_HCP_IMAGE_ACR ?= {{ .acr.svc.name }}
3- FRONTEND_IMAGE_REPOSITORY ?= {{ .frontend.image.repository }}
3+ FRONTEND_IMAGE_REPOSITORY ?= {{ .frontend.image.repository }}
4+ DB_NAME ?= {{ .frontend.cosmosDB.name }}
5+ DB_URL ?= $(shell az cosmosdb show -n {{ .frontend.cosmosDB.name }} -g {{ .regionRG }} --query documentEndpoint -o tsv)
Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ $(BINARY): $(FRONTEND_SOURCES)
3131 go build $(LDFLAGS ) -o $(BINARY ) .
3232
3333run : $(BINARY )
34- DB_URL=$$(az cosmosdb show -n ${DB_NAME} -g ${REGION_RG} --query documentEndpoint -o tsv ) && \
35- ./$(BINARY ) --location ${LOCATION} \
34+ ./$(BINARY ) --location ${LOCATION} \
3635 --clusters-service-url http://localhost:8000 \
3736 --cosmos-name ${DB_NAME} \
38- --cosmos-url $$ {DB_URL}
37+ --cosmos-url ${DB_URL}
3938.PHONY : run
4039
4140clean :
You can’t perform that action at this time.
0 commit comments