-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
66 lines (51 loc) · 1.3 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
63
64
65
66
setup-app:
@docker-compose up --build cdc-poc
.PHONY: setup-app
database:
@docker-compose up -d postgres
@sleep 3
.PHONY: database
migrate:
@docker-compose run --rm cdc-poc npm run migrate
.PHONY: migrate
setup-db: database migrate
.PHONY: setup-db
setup-kafka-ecosystem:
@docker-compose up -d zookeeper broker schema-registry connect akhq ksqldb-server ksqldb-cli
.PHONY: setup-kafka-ecosystem
setup-connectors:
@sleep 15
./scripts/connectors/debezium.sh
.PHONY: setup-connectors
setup-all: setup-db setup-kafka-ecosystem setup-connectors setup-app setup-controlcenter
.PHONY: setup-all
populate-tables:
@docker-compose run --rm cdc-poc npm run script
.PHONY: populate-tables
psql:
@docker-compose exec postgres psql user=postgres
.PHONY: psql
sqlserver:
@docker exec -it sqlserver bash -c '/opt/mssql-tools/bin/sqlcmd -U sa -P P@ssw0rd'
.PHONY: sqlserver
ksql:
@docker exec -it ksqldb-cli ksql http://ksqldb-server:8088
.PHONY: ksql
stop:
@docker-compose stop
.PHONY: stop
down:
@docker-compose down
.PHONY: down
setup-controlcenter:
@docker-compose up -d control-center
@sleep 3
.PHONY: setup-controlcenter
purge-all:
@docker ps -aq | xargs docker stop
@docker ps -aq | xargs docker rm
@docker images -q | xargs docker rmi
.PHONY: purge-all
logs:
@docker-compose logs -f cdc-poc
.PHONY: logs