forked from monder/goofys-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (18 loc) · 809 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PLUGIN_NAME=decentralize/goofys-volume-plugin
PLUGIN_TAG=next
export DOCKER_BUILDKIT=1
all: create
docker:
@echo "### docker build: rootfs image with docker-volume-s3fs"
@docker build -t ${PLUGIN_NAME}:creator .
create: docker
@echo "### remove existing plugin ${PLUGIN_NAME}:${PLUGIN_TAG} if exists"
@docker plugin rm -f ${PLUGIN_NAME}:${PLUGIN_TAG} || true
@echo "### create new plugin ${PLUGIN_NAME}:${PLUGIN_TAG} from ./plugin"
@docker run --rm -e IMAGE=${PLUGIN_NAME}:${PLUGIN_TAG} -v /var/run/docker.sock:/var/run/docker.sock:ro ${PLUGIN_NAME}:creator
enable: create
@echo "### enable plugin ${PLUGIN_NAME}:${PLUGIN_TAG}"
@docker plugin enable ${PLUGIN_NAME}:${PLUGIN_TAG}
push: create
@echo "### push plugin ${PLUGIN_NAME}:${PLUGIN_TAG}"
@docker plugin push ${PLUGIN_NAME}:${PLUGIN_TAG}