diff --git a/Dockerfile b/Dockerfile index 777294e..36f9ab8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1 @@ -from gsiupm/senpy:0.10.8-python2.7 \ No newline at end of file +from gsiupm/senpy:0.10.9-python2.7 \ No newline at end of file diff --git a/Makefile b/Makefile index a21e862..eb66620 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ REPO=gsiupm PLUGINS= $(filter %/, $(wildcard */)) IMAGENAME=gsiupm/senpy-plugins-community DOCKER_FLAGS= +DEV_PORT?=5000 ifdef SENPY_FOLDER DOCKER_FLAGS+= -v $(realpath $(SENPY_FOLDER)):/usr/src/app/ @@ -17,6 +18,9 @@ test-%: test: test-. +dev: + docker run -p $(DEV_PORT):5000 $(DOCKER_FLAGS) -ti $(DOCKER_FLAGS) -v $$PWD/$*:/senpy-plugins/ --entrypoint /bin/bash -v $$PWD/data:/data/ --rm $(IMAGEWTAG) + clean-docker: @docker ps -a | awk '/$(REPO)\/$(NAME)/{ split($$2, vers, "-"); if(vers[1] != "${VERSION}"){ print $$1;}}' | xargs docker rm 2>/dev/null|| true @docker images | awk '/$(REPO)\/$(NAME)/{ split($$2, vers, "-"); if(vers[1] != "${VERSION}"){ print $$1":"$$2;}}' | xargs docker rmi 2>/dev/null|| true