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
password:
from_secret: repo_pass
repo: git.ivasoft.cz/sw/docker-bridge-overlay
repo: git.ivasoft.cz/sw/objectivefs-docker-volume
is_plugin: true
#debug: true
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.* ./
RUN go mod download
COPY cmd/ ./cmd/
COPY pkg/ ./pkg/
RUN mkdir bin/ && go build -o bin/ ./cmd/...
RUN mkdir bin/ && go build -o bin/ ./...
FROM alpine:3.17
FROM debian:bullseye-slim
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 /
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
PLATFORMS ?= linux/amd64,linux/arm64
@@ -30,7 +30,7 @@ plugin: plugin/rootfs config.json
create: plugin
docker plugin rm -f $(PLUGIN_NAME):$(PLUGIN_TAG) || true
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
docker plugin enable $(PLUGIN_NAME):$(PLUGIN_TAG)
@@ -38,7 +38,7 @@ disable:
docker plugin disable $(PLUGIN_NAME):$(PLUGIN_TAG)
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
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": {
"socket": "bridge-overlay.sock",
"socket": "objectivefs",
"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": [
{
"description": "Log level",
"name": "LOG_LEVEL",
"value": "info",
"name": "ACCESS_KEY",
"value": "",
"settable": [
"value"
]
},
{
"name": "SECRET_KEY",
"value": "",
"settable": [
"value"
]
},
{
"name": "OBJECTIVEFS_LICENSE",
"value": "",
"settable": [
"value"
]
}
],
"workdir": "/",
"mounts": [
{
"source": "/var/run/docker.sock",
"destination": "/run/docker.sock",
"type": "bind",
"options": [
"bind"
]
}
]
"network": {
"type": "host"
},
"propagatedMount": "/var/lib/docker-volumes",
"linux": {
"capabilities": [
"CAP_SYS_ADMIN"
],
"devices": [
{
"path": "/dev/fuse"
}
]
}
}