Skip to content

Commit 7a37417

Browse files
committed
Integration with managed plugin system
1 parent 1cbe8cc commit 7a37417

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
VERSION := 0
2-
ROOTFS_IMAGE := ashald/docker-volume-loopback-rootfs
3-
ROOTFS_CONTAINER := rootfs
2+
AUTHOR := ashald
43
PLUGIN_NAME := docker-volume-loopback
5-
PLUGIN_FULL_NAME := ashald/docker-volume-loopback
4+
PLUGIN_FULL_NAME := ${AUTHOR}/${PLUGIN_NAME}
5+
ROOTFS_CONTAINER := ${PLUGIN_NAME}-rootfs
6+
ROOTFS_IMAGE := ${AUTHOR}/${ROOTFS_CONTAINER}
7+
68

79
build:
8-
GOOS=linux GOARCH=amd64 go build -o $(PLUGIN_NAME)
10+
GOOS=linux GOARCH=amd64 go build -o "$(PLUGIN_NAME)"
11+
912

1013
rootfs-image:
1114
docker build -t $(ROOTFS_IMAGE) .
1215

16+
1317
rootfs: rootfs-image
1418
docker rm -vf $(ROOTFS_CONTAINER) || true
1519
docker create --name $(ROOTFS_CONTAINER) $(ROOTFS_IMAGE) || true

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
const (
15-
socketAddress = "/run/docker/plugins/loop.sock"
15+
socketAddress = "/run/docker/plugins/docker-volume-loopback.sock"
1616
)
1717

1818
type config struct {

plugin/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
],
3333
"Interface": {
34-
"Socket": "dvl.sock",
34+
"Socket": "docker-volume-loopback.sock",
3535
"Types": ["docker.volumedriver/1.0"]
3636
},
3737
"Linux": {

0 commit comments

Comments
 (0)