-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
45 lines (32 loc) · 1.05 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
.DEFAULT_GOAL := docker-build
IMAGE ?= questdb/questdb-connect
SHORT_COMMIT_HASH ?= $(shell git rev-parse --short HEAD)
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
DB_HOSTNAME ?= 127.0.0.1
ifeq (, $(shell which docker))
$(error "No docker in $(PATH), consider checking out https://docker.io/ for info")
endif
ifeq (, $(shell which curl))
$(error "No curl in $(PATH)")
endif
docker-build:
docker build -t questdb/questdb-connect:latest .
docker-run:
docker run -it questdb/questdb-connect:latest
docker-push:
docker push questdb/questdb-connect:latest
compose-up:
docker-compose up
compose-down:
docker-compose down --remove-orphans
echo "y" | docker container prune
echo "y" | docker volume prune
docker-test:
docker run -e QUESTDB_CONNECT_HOST='host.docker.internal' -e SQLALCHEMY_SILENCE_UBER_WARNING=1 questdb/questdb-connect:latest
test:
python3 -m pytest
python3 -m black src
python3 -m ruff check src/questdb_connect --fix
python3 -m ruff check src/examples --fix
python3 -m ruff check tests --fix
-include ../Mk/phonies