1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 21:18:12 +00:00
senpy/Makefile

31 lines
838 B
Makefile
Raw Normal View History

2019-04-04 10:56:46 +00:00
PYVERSION=3.7
NAME=senpycommunity
REPO=gsiupm
PLUGINS= $(filter %/, $(wildcard */))
2018-06-15 07:46:15 +00:00
IMAGENAME=gsiupm/senpy-plugins-community
2018-08-01 11:19:09 +00:00
DOCKER_FLAGS=-e MOCK_REQUESTS=$(MOCK_REQUESTS)
2018-07-04 14:42:38 +00:00
DEV_PORT?=5000
2018-06-14 17:38:08 +00:00
ifdef SENPY_FOLDER
2018-06-15 07:46:15 +00:00
DOCKER_FLAGS+= -v $(realpath $(SENPY_FOLDER)):/usr/src/app/
2018-06-14 17:38:08 +00:00
endif
all: build run
2019-04-04 12:08:30 +00:00
test-fast-%: docker-build
2018-06-15 14:44:25 +00:00
docker run $(DOCKER_FLAGS) -v $$PWD/$*:/senpy-plugins/ -v $$PWD/data:/data/ --rm $(IMAGEWTAG) --only-test $(TEST_FLAGS)
2018-08-01 11:19:09 +00:00
test-fast: test-fast-/
2019-04-04 12:08:30 +00:00
test: docker-build
docker run $(DOCKER_FLAGS) -v $$PWD/data:/data/ --rm $(IMAGEWTAG) --only-test $(TEST_FLAGS)
2019-04-04 10:56:46 +00:00
dev: docker-build
2018-07-04 14:42:38 +00:00
docker run -p $(DEV_PORT):5000 $(DOCKER_FLAGS) -ti $(DOCKER_FLAGS) -v $$PWD/$*:/senpy-plugins/ --entrypoint /bin/bash -v $$PWD/data:/data/ --rm $(IMAGEWTAG)
.PHONY:: test test-fast dev
2018-06-15 07:46:15 +00:00
include .makefiles/base.mk
include .makefiles/k8s.mk