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
|
DCMP = docker compose
COMPOSE_SOURCE = docker-compose.yml logstash/Dockerfile logstash/config/logstash.conf logstash/templates/wforce_template.json regression/Dockerfile wforce_image/Dockerfile wforce_image/docker-entrypoint.sh wforce_image/wforce.conf.j2 wforce_image/create_config.sh
COMPOSE_TARGET = .docker
REGRESSION_SERVICE = regression
SUBDIRS= wforce_image
$(COMPOSE_TARGET): $(COMPOSE_SOURCE) $(shell find ../common -type f) $(shell find ../wforce -type f) $(shell find ../trackalert -type f) $(shell find ../ext -type f) $(shell find ../regression-tests -type f) $(shell find regression -type f) $(shell find logstash -type f)
$(DCMP) down -v
$(DCMP) build
touch $(COMPOSE_TARGET)
build_image: $(COMPOSE_TARGET)
start:
$(DCMP) up -d
stop:
$(DCMP) stop
kill:
$(DCMP) kill
clean_elastic: stop
$(DCMP) rm -v
docker volume rm docker_esdata
rm $(COMPOSE_TARGET)
clean_docker:
$(DCMP) down -v
clean: clean_docker
regression-gcc: build_image start
$(DCMP) exec -T $(REGRESSION_SERVICE) docker/regression/regression.sh gcc g++ --enable-sodium /var/tmp/testlog/gcctest.xml
regression-clang: build_image start
$(DCMP) exec -T $(REGRESSION_SERVICE) docker/regression/regression.sh clang clang++ --disable-sodium /var/tmp/testlog/clangtest.xml
regression-none:
echo "Regression tests skipped due to compiler 'none'"
regression: regression-gcc regression-clang
|