All checks were successful
Build and Push / build (push) Successful in 6s
Co-authored-by: Antigravity <antigravity@deepmind.com>
33 lines
840 B
Makefile
33 lines
840 B
Makefile
.PHONY: help fees match web image run
|
|
|
|
export PYTHONPATH := scripts:$(PYTHONPATH)
|
|
VENV := .venv
|
|
PYTHON := $(VENV)/bin/python3
|
|
|
|
$(PYTHON):
|
|
python3 -m venv $(VENV)
|
|
$(PYTHON) -m pip install -q flask
|
|
|
|
help:
|
|
@echo "Available targets:"
|
|
@echo " make fees - Calculate monthly fees from the attendance sheet"
|
|
@echo " make match - Match Fio bank payments against expected attendance fees"
|
|
@echo " make web - Start a dynamic web dashboard locally"
|
|
@echo " make image - Build an OCI container image"
|
|
@echo " make run - Run the built Docker image locally"
|
|
|
|
fees: $(PYTHON)
|
|
$(PYTHON) scripts/calculate_fees.py
|
|
|
|
match: $(PYTHON)
|
|
$(PYTHON) scripts/match_payments.py
|
|
|
|
web: $(PYTHON)
|
|
$(PYTHON) app.py
|
|
|
|
image:
|
|
docker build -t fuj-management:latest -f build/Dockerfile .
|
|
|
|
run:
|
|
docker run -it --rm -p 5001:5001 fuj-management:latest
|