-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 963 Bytes
/
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
# to run tests with arm64 see https://docs.docker.com/build/building/multi-platform/
export OGION_ARCH ?= amd64
ifdef CI
BUILD :=
else
BUILD := "--build"
endif
.PHONY: docker_setup_up
docker_setup_up:
docker compose -f docker/docker-compose.yml pull
docker compose -f docker/docker-compose.yml up -d gcs minio azurite
docker compose -f docker/docker-compose.dbs.yml up -d
.PHONY: docker_setup_down
docker_setup_down:
docker compose -f docker/docker-compose.yml down
docker compose -f docker/docker-compose.dbs.yml down
.PHONY: unit_tests
unit_tests:
$(MAKE) docker_setup_up
docker compose -f docker/docker-compose.yml run --rm $(BUILD) ogion_unit_tests
.PHONY: acceptance_tests
acceptance_tests:
$(MAKE) docker_setup_up
docker compose -f docker/docker-compose.yml run --rm --build ogion_acceptance_tests
.PHONY: update_compose_db_file
update_compose_db_file:
poetry run python ogion/tools/compose_file_generator.py > docker/docker-compose.dbs.yml