-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (53 loc) · 1.24 KB
/
Copy pathMakefile
File metadata and controls
60 lines (53 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# You need to be logged in to the docker registry to run api.
root = $(shell pwd)
setup:
@-docker network create ncg
bff:
@-docker kill bff > /dev/null
@-docker rm bff > /dev/null
@echo Building BFF
@docker build -f apps/bff/Dockerfile \
-t bff:test \
.
@echo Running BFF
@docker run \
-d \
--network ncg \
--name bff \
--env-file .env \
-p 3000:8080 \
bff:test
hyundai:
@-docker kill hyundai-spa > /dev/null
@-docker rm hyundai-spa > /dev/null
@echo Building Hyundai SPA
@docker build -f apps/hyundai/Dockerfile \
-t hyundai-spa:test \
.
@echo Running Hyundai SPA
@docker run \
-d \
--network ncg \
--name hyundai-spa \
-e 'APP_ENV=dev' \
-e 'APP_NAME=hyundai' \
-e 'API_URL=https://app-ncg-bff-web-dev.azurewebsites.net' \
-p 8080:80 \
hyundai-spa:test
terminalen:
@-docker kill terminalen-spa > /dev/null
@-docker rm terminalen-spa > /dev/null
@echo Building Terminalen SPA
@docker build -f apps/terminalen/Dockerfile \
-t terminalen-spa:test \
.
@echo Running terminalen SPA
@docker run \
-d \
--network ncg \
--name terminalen-spa \
-e 'APP_ENV=dev' \
-e 'APP_NAME=terminalen' \
-e 'API_URL=https://app-ncg-bff-web-dev.azurewebsites.net' \
-p 8080:80 \
terminalen-spa:test