chore: import CephMig prototype

Initial import of the existing CephFS subvolume migration prototype,
including the native libcephfs transport, rsync backend, local Ceph
lab environment and integration tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 18:05:53 +01:00
commit 7705ed3eaf
58 files changed
+8769

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
ARG CEPH_IMAGE=quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d
FROM ${CEPH_IMAGE} AS build
RUN dnf install -y gcc golang-1.26.10-1.el10_2 \
https://download.ceph.com/rpm-21.2.0/el10/x86_64/libcephfs-devel-21.2.0-0.el10.x86_64.rpm \
https://download.ceph.com/rpm-21.2.0/el10/x86_64/libcephfs-proxy2-21.2.0-0.el10.x86_64.rpm \
https://download.ceph.com/rpm-21.2.0/el10/x86_64/librados-devel-21.2.0-0.el10.x86_64.rpm \
&& dnf clean all
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=1 go test -race -tags ceph ./... \
&& CGO_ENABLED=1 go vet -tags ceph ./... \
&& CGO_ENABLED=1 go build -buildvcs=false -tags ceph -o /out/native-probe ./cmd/nativeprobe \
&& CGO_ENABLED=1 go build -buildvcs=false -tags ceph -o /out/cephmig-native .
FROM ${CEPH_IMAGE}
COPY --from=build /out/ /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/cephmig-native"]