quivr/Makefile

35 lines
876 B
Makefile
Raw Normal View History

.DEFAULT_TARGET=help
## help: Display list of commands
.PHONY: help
help:
@echo "Available commands:"
@sed -n 's|^##||p' $(MAKEFILE_LIST) | column -t -s ':' | sed -e 's|^| |'
2023-12-04 12:39:58 +03:00
## dev: Start development environment
.PHONY: dev
dev:
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml up --build
2023-12-04 12:39:58 +03:00
dev-build:
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml build --no-cache
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml up
## prod: Build and start production environment
.PHONY: prod
prod:
docker compose -f docker-compose.yml up --build
## front: Build and start frontend
.PHONY: front
front:
cd frontend && yarn && yarn build && yarn start
## test: Run tests
.PHONY: test
test:
# Ensure dependencies are installed with dev and test extras
# poetry install --with dev,test && brew install tesseract pandoc libmagic
./.run_tests.sh