-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 1.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
default: setup
run:
docker exec -it invoice-commands-handler-stream-app /bin/sh -c "?"
app:
docker exec -it invoice-commands-handler-stream-app bash
up:
docker-compose up --abort-on-container-exit
down:
docker-compose down -v
create-invoice-request:
curl -v -X POST \
http://localhost:3000/invoices \
-H 'Content-Type: application/json' \
-d '{"customer": "fake customer", "items": ["fake item"]}'
topics-list:
docker exec -it invoice-commands-handler-stream-tools /bin/sh \
-c "/opt/confluent-5.3.1/bin/kafka-topics --list --bootstrap-server broker:29092"
tests:
docker start invoice-commands-handler-stream-tests && \
docker exec -it invoice-commands-handler-stream-tests /bin/sh -c "cd app && ?"
consume-invoice-commands:
docker exec -it invoice-commands-handler-stream-tools /opt/confluent-5.3.1/bin/kafka-avro-console-consumer --topic invoice-commands \
--bootstrap-server broker:29092 \
--property schema.registry.url=http://kafka-schema-registry:8081 \
--property print.key=true \
--key-deserializer=org.apache.kafka.common.serialization.StringDeserializer \
--from-beginning