forked from huggingface/dataset-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (21 loc) · 965 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
# environment variables for the commands (docker compose, poetry)
export MONGO_PORT := 27060
export PORT_ADMIN := 8181
export PORT_API := 8180
export PORT_REVERSE_PROXY := 8100
export COMPOSE_PROJECT_NAME := datasets-server
# makefile variables
DOCKER_COMPOSE := ./tools/docker-compose-datasets-server.yml
DOCKER_IMAGES := ./chart/docker-images.yaml
include tools/DockerRemoteImages.mk
include tools/Docker.mk
.PHONY: start
start:
MONGO_PORT=${MONGO_PORT} ADMIN_UVICORN_PORT=${PORT_ADMIN} API_UVICORN_PORT=${PORT_API} PORT_REVERSE_PROXY=${PORT_REVERSE_PROXY} DOCKER_COMPOSE=${DOCKER_COMPOSE} $(MAKE) up
.PHONY: stop
stop:
MONGO_PORT=${MONGO_PORT} ADMIN_UVICORN_PORT=${PORT_ADMIN} API_UVICORN_PORT=${PORT_API} PORT_REVERSE_PROXY=${PORT_REVERSE_PROXY} DOCKER_COMPOSE=${DOCKER_COMPOSE} $(MAKE) down
.PHONY: e2e
e2e:
$(MAKE) -C e2e/ e2e
# for install, quality checks and tests of every job, lib, service or worker, see the Makefile in the corresponding folder