-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (42 loc) · 1.38 KB
/
Makefile
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
# --------------------------------------------------------
# THIS IS ONLY INTENDED TO BE USED FOR LOCAL DEVELOPMENT |
# --------------------------------------------------------
start:
@ENVIRONMENT=local \
CONTENT_API_ENDPOINT="http://localhost:1337/graphql" \
VERSIONING_API_ENDPOINT="" \
MEDIA_API_ENDPOINT="http://localhost:4002/graphql" \
node gateway.js
startRemote:
@ENVIRONMENT=local \
CONTENT_API_ENDPOINT="http://opl-content-api-opl-dev.apps.s44.core.rht-labs.com/graphql" \
VERSIONING_API_ENDPOINT="" \
MEDIA_API_ENDPOINT="http://opl-media-service-opl-dev.apps.s44.core.rht-labs.com/graphql" \
node gateway.js
dockerbuild:
docker build -t opl-api-gateway .
dockerstart:
docker start -d --rm \
-p 4000:4000 \
--net=host \
-e CONTENT_API_ENDPOINT="http://localhost:1337/graphql" \
-e VERSIONING_API_ENDPOINT="" \
-e MEDIA_API_ENDPOINT="http://localhost:4002/graphql" \
--name opl-api-gateway \
opl-api-gateway
dockerstop:
docker stop opl-api-gateway
podmanbuild:
echo "Make doesn't check aliases to docker if you use podman that way" && \
podman build -t opl-api-gateway .
podmanstart:
podman run -d --rm \
-p 4000:4000 \
--net=host \
-e CONTENT_API_ENDPOINT="http://localhost:1337/graphql" \
-e VERSIONING_API_ENDPOINT="" \
-e MEDIA_API_ENDPOINT="http://localhost:4002/graphql" \
--name opl-api-gateway \
opl-api-gateway
podmanstop:
podman stop opl-api-gateway