-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (24 loc) · 751 Bytes
/
makefile
File metadata and controls
31 lines (24 loc) · 751 Bytes
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
CONTAINER_NAME?=qatcomputer
PROJECT_NAME?=qat-computer
FULL?=false
docker-build:
docker build . --build-arg FULL=$(FULL) --file docker/Dockerfile --tag $(CONTAINER_NAME):latest
docker-start:
docker run -d --rm --privileged --cgroupns=host \
--name $(CONTAINER_NAME) \
-v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v $(PWD)/qat_computer/resources/conf:/etc/$(PROJECT_NAME)/conf \
-v $(PWD)/qat_computer/resources/compute:/etc/$(PROJECT_NAME)/compute \
$(CONTAINER_NAME):latest
docker-compute:
docker exec --tty $(CONTAINER_NAME) \
$(PROJECT_NAME) compute -conf=conf_docker.yaml
docker-inside:
docker exec -it $(CONTAINER_NAME) bash
compose-start:
docker compose up -d
tox-test:
tox -epy$(PYTHON_VERS)
tox-fmt:
black tests
tox -elint