summaryrefslogtreecommitdiffstats
path: root/sanitycheck/dmaap-simulator/Makefile
blob: af8f1620149713085f95d312a3f4b9d1d53321e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: build

.PHONY: build

build:
	@echo "##### Build dmaap simulator image #####"
	docker build . -t dmaap-simulator
	@echo "##### DONE #####"

start:
	@echo "##### Start dmaap simulator #####"
	docker run -d -p 3904:3904 --name dmaap-simulator dmaap-simulator
	@echo "##### DONE #####"

stop:
	@echo "##### Stop dmaap simulator #####"
	docker rm -f dmaap-simulator
	@echo "##### DONE #####"

get-data:
	@echo "##### Get data fetched by dmaap-simulator #####\n"
	curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://localhost:3904/events
	@echo "\n\n##### DONE #####"