Missing files.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-25 00:07:50 +02:00
parent 2a11d9cb51
commit 3c55cdd9ee
4 changed files with 45 additions and 31 deletions

View File

@@ -11,7 +11,7 @@ steps:
from_secret: repo_user from_secret: repo_user
password: password:
from_secret: repo_pass from_secret: repo_pass
repo: git.ivasoft.cz/sw/docker-bridge-overlay repo: git.ivasoft.cz/sw/objectivefs-docker-volume
is_plugin: true is_plugin: true
#debug: true #debug: true
tags: tags:

View File

@@ -1,19 +1,16 @@
FROM golang:1.20-alpine3.17 AS builder FROM golang:1.20-bullseye AS builder
WORKDIR /usr/local/src/docker-bridge-overlay WORKDIR /usr/local/src/objectivefs-docker-volume
COPY go.* ./ COPY go.* ./
RUN go mod download RUN go mod download
COPY cmd/ ./cmd/ RUN mkdir bin/ && go build -o bin/ ./...
COPY pkg/ ./pkg/
RUN mkdir bin/ && go build -o bin/ ./cmd/...
FROM alpine:3.17 FROM debian:bullseye-slim
RUN mkdir -p /run/docker/plugins RUN mkdir -p /run/docker/plugins
COPY --from=builder /usr/local/src/docker-bridge-overlay/bin/bridge-overlay /usr/sbin/ COPY --from=builder /usr/local/src/objectivefs-docker-volume/bin/objectivefs-docker-volume /
COPY bin/mount.objectivefs /sbin/
COPY config.json / COPY config.json /
ENTRYPOINT ["/usr/sbin/bridge-overlay"]

View File

@@ -1,4 +1,4 @@
PLUGIN_NAME = git.ivasoft.cz/sw/docker-bridge-overlay PLUGIN_NAME = git.ivasoft.cz/sw/objectivefs-docker-volume
PLUGIN_TAG ?= golang PLUGIN_TAG ?= golang
PLATFORMS ?= linux/amd64,linux/arm64 PLATFORMS ?= linux/amd64,linux/arm64
@@ -30,7 +30,7 @@ plugin: plugin/rootfs config.json
create: plugin create: plugin
docker plugin rm -f $(PLUGIN_NAME):$(PLUGIN_TAG) || true docker plugin rm -f $(PLUGIN_NAME):$(PLUGIN_TAG) || true
docker plugin create $(PLUGIN_NAME):$(PLUGIN_TAG) $< docker plugin create $(PLUGIN_NAME):$(PLUGIN_TAG) $<
docker plugin set $(PLUGIN_NAME):$(PLUGIN_TAG) LOG_LEVEL=trace docker plugin set $(PLUGIN_NAME):$(PLUGIN_TAG)
enable: plugin enable: plugin
docker plugin enable $(PLUGIN_NAME):$(PLUGIN_TAG) docker plugin enable $(PLUGIN_NAME):$(PLUGIN_TAG)
@@ -38,7 +38,7 @@ disable:
docker plugin disable $(PLUGIN_NAME):$(PLUGIN_TAG) docker plugin disable $(PLUGIN_NAME):$(PLUGIN_TAG)
pdebug: create enable pdebug: create enable
sudo sh -c 'tail -f /var/lib/docker/plugins/*/rootfs/var/log/bridge-overlay.log' sudo sh -c 'tail -f /var/lib/docker/plugins/*/rootfs/var/log/objectivefs-docker-volume.log'
push: create push: create
docker plugin push $(PLUGIN_NAME):$(PLUGIN_TAG) docker plugin push $(PLUGIN_NAME):$(PLUGIN_TAG)

View File

@@ -1,31 +1,48 @@
{ {
"description": "Docker bridge as overlay networking driver", "description": "ObjectiveFS Volume Driver",
"interface": { "interface": {
"socket": "bridge-overlay.sock", "socket": "objectivefs",
"types": [ "types": [
"docker.networkdriver/1.0" "docker.volumedriver/1.0"
] ]
}, },
"entrypoint": ["/usr/sbin/bridge-overlay", "-logfile", "/var/log/bridge-overlay.log"], "entrypoint": ["/objectivefs-docker-volume"],
"env": [ "env": [
{ {
"description": "Log level", "name": "ACCESS_KEY",
"name": "LOG_LEVEL", "value": "",
"value": "info", "settable": [
"value"
]
},
{
"name": "SECRET_KEY",
"value": "",
"settable": [
"value"
]
},
{
"name": "OBJECTIVEFS_LICENSE",
"value": "",
"settable": [ "settable": [
"value" "value"
] ]
} }
], ],
"workdir": "/", "network": {
"mounts": [ "type": "host"
{ },
"source": "/var/run/docker.sock", "propagatedMount": "/var/lib/docker-volumes",
"destination": "/run/docker.sock", "linux": {
"type": "bind", "capabilities": [
"options": [ "CAP_SYS_ADMIN"
"bind" ],
] "devices": [
} {
] "path": "/dev/fuse"
}
]
}
} }