-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
16 lines (12 loc) · 866 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
test: build
docker run --env PYGEOAPI_CONFIG=/pkp/tests/pygeoapi-test-config.yaml --env PYGEOAPI_OPENAPI=/pygeoapi/tests/pygeoapi-test-openapi.yml --entrypoint python3 pkp:1 -m pytest
docker run --entrypoint flake8 pkp:1 pygeoapi_kubernetes_papermill tests
docker run --entrypoint mypy pkp:1 pygeoapi_kubernetes_papermill tests
build:
docker build . -t pkp:1
bash: build
docker run --env PYGEOAPI_CONFIG=/pkp/tests/pygeoapi-test-config.yaml --env PYGEOAPI_OPENAPI=/pygeoapi/tests/pygeoapi-test-openapi.yml --volume `pwd`:/pkp -it --entrypoint bash pkp:1
upgrade-packages:
docker run --volume `pwd`:/pkp --rm --user 0 --entrypoint bash -it pkp:1 -c "python3 -m pip install pip-upgrader && pip-upgrade --skip-package-installation"
run:
docker run --volume `pwd`:/pkp --volume `pwd`/pygeoapi-local-config.yaml:/pygeoapi/local.config.yml -p 5000:80 -it pkp:1