PYTHON_VERSION_MINOR ?= 3.9
PYTHON_VERSION ?= ${PYTHON_VERSION_MINOR}-aws2-builder
PYTHON_VERSION_PATCH = $(shell curl -s https://www.python.org/ftp/python/ | grep 'href="${PYTHON_VERSION_MINOR}.' | awk -F '>|/<' '{print $$2}'| sort -V | tail -1 | tr -d '\n')


include ../../Makefile.inc

.PHONY: docker/test
docker/test:
	docker run -it --rm  \
		-w /app/tests \
		-e GRAS_SECRET='$(shell aws secretsmanager --profile gdb-delphi-dev get-secret-value --secret-id delphi/dev/slz/gras_db)' \
		-u sme \
		-v $(PWD)/tests/:/app/tests/ \
		$(REGISTRY):3.9-aws2 sh run.sh
