File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
VERSION := 0
2
- ROOTFS_IMAGE := ashald/docker-volume-loopback-rootfs
3
- ROOTFS_CONTAINER := rootfs
2
+ AUTHOR := ashald
4
3
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
+
6
8
7
9
build :
8
- GOOS=linux GOARCH=amd64 go build -o $(PLUGIN_NAME )
10
+ GOOS=linux GOARCH=amd64 go build -o " $( PLUGIN_NAME) "
11
+
9
12
10
13
rootfs-image :
11
14
docker build -t $(ROOTFS_IMAGE ) .
12
15
16
+
13
17
rootfs : rootfs-image
14
18
docker rm -vf $(ROOTFS_CONTAINER ) || true
15
19
docker create --name $(ROOTFS_CONTAINER ) $(ROOTFS_IMAGE ) || true
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
)
13
13
14
14
const (
15
- socketAddress = "/run/docker/plugins/loop .sock"
15
+ socketAddress = "/run/docker/plugins/docker-volume-loopback .sock"
16
16
)
17
17
18
18
type config struct {
Original file line number Diff line number Diff line change 31
31
}
32
32
],
33
33
"Interface" : {
34
- "Socket" : " dvl .sock" ,
34
+ "Socket" : " docker-volume-loopback .sock" ,
35
35
"Types" : [" docker.volumedriver/1.0" ]
36
36
},
37
37
"Linux" : {
You can’t perform that action at this time.
0 commit comments