forked from shamirlabs/diva-alpha-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (46 loc) · 2.15 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
51
52
53
54
55
56
57
58
59
60
61
62
# Parameters
DOCKER_USERNAME=diva
RELOADER_NAME=reloader
RELOADER_VERSION=v23.8.0
VECTOR_NAME=vector
VECTOR_VERSION=v23.8.0
JAEGER_NAME=jaeger
JAEGER_VERSION=v23.8.0
build: build-reloader build-vector build-jaeger
build-reloader:
docker buildx build --platform linux/amd64 -f .docker/reloader/Dockerfile --tag $(DOCKER_USERNAME)/$(RELOADER_NAME):$(RELOADER_VERSION) .
build-vector:
docker buildx build --platform linux/amd64 -f .docker/vector/Dockerfile --tag $(DOCKER_USERNAME)/$(VECTOR_NAME):$(VECTOR_VERSION) .
build-jaeger:
docker buildx build --platform linux/amd64 -f .docker/jaeger/Dockerfile --tag $(DOCKER_USERNAME)/$(JAEGER_NAME):$(JAEGER_VERSION) .
run:
docker compose up -d
stop:
docker compose down
restart-reloader:
docker compose down
docker ps --filter name="$(RELOADER_NAME)*" --filter status=running -aq | xargs docker stop
docker ps --filter name="$(RELOADER_NAME)*" -aq | xargs docker rm
docker network ls --filter name="$(RELOADER_NAME)*" -q | xargs docker network rm
docker compose up -d
clean-reloader:
docker ps --filter name="$(RELOADER_NAME)*" --filter status=running -aq | xargs docker stop
docker ps --filter name="$(RELOADER_NAME)*" -aq | xargs docker rm
docker network ls --filter name="$(RELOADER_NAME)*" -q | xargs docker network rm
docker image rm $(DOCKER_USERNAME)/$(RELOADER_NAME) -f
clean-vector:
docker ps --filter name="$(VECTOR_NAME)*" --filter status=running -aq | xargs docker stop
docker ps --filter name="$(VECTOR_NAME)*" -aq | xargs docker rm
docker network ls --filter name="$(VECTOR_NAME)*" -q | xargs docker network rm
docker image rm $(DOCKER_USERNAME)/$(VECTOR_NAME) -f
clean-jaeger:
docker ps --filter name="$(JAEGER_NAME)*" --filter status=running -aq | xargs docker stop
docker ps --filter name="$(JAEGER_NAME)*" -aq | xargs docker rm
docker network ls --filter name="$(JAEGER_NAME)*" -q | xargs docker network rm
docker image rm $(DOCKER_USERNAME)/$(JAEGER_NAME) -f
push-reloader:
docker push $(DOCKER_USERNAME)/$(RELOADER_NAME):$(RELOADER_VERSION)
push-vector:
docker push $(DOCKER_USERNAME)/$(VECTOR_NAME):$(VECTOR_VERSION)
push-jaeger:
docker push $(DOCKER_USERNAME)/$(JAEGER_NAME):$(JAEGER_VERSION)