- Dockerfile 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Synology never published an image for v1.4.0. Their Dockerfile moved to UBI 9 and installs e2fsprogs, xfsprogs, nfs-utils and cifs-utils, which are not in the free UBI repos, so the build needs RHEL entitlement. Rocky carries all of them in BaseOS. Rocky 10 to match the nodes, so mkfs in the container and fsck from the host are the same e2fsprogs and xfsprogs. Go 1.27 rather than upstream's end-of-life 1.21.4; go.mod declares go 1.21, so the language semantics are unchanged and only the standard library moves. Assisted-by: claude-opus-5 |
||
| patches | ||
| .gitignore | ||
| Containerfile | ||
| README.md | ||
synology-csi-rocky
The Synology CSI driver rebuilt on Rocky Linux.
Why
Synology never published an image for driver v1.4.0. Their Dockerfile moved to
UBI 9 and installs e2fsprogs, xfsprogs, nfs-utils and cifs-utils, none
of which are in the free UBI repos, so the build needs RHEL entitlement
(upstream #149).
Rocky carries all of them in BaseOS, so the same image builds without it.
Rocky 10 matches the cluster nodes, so mkfs inside the container and fsck
from the host are the same e2fsprogs and xfsprogs versions.
The driver binary is static (CGO_ENABLED=0, -extldflags "-static"), so the
runtime stage only supplies the filesystem tools.
Build
podman build \
--build-arg IMAGE_VERSION=v1.4.0-rocky10.1 \
-t git.tiuxo.com/brian/synology-csi-rocky:v1.4.0-rocky10.1 .
SYNO_REF pins the upstream commit, GO_VERSION the toolchain. Upstream pins
Go 1.21.4, which is end of life; go.mod declares go 1.21, so a newer
toolchain keeps the 1.21 language semantics and only updates the standard
library.
Tags
v<upstream version>-rocky<base major>.<build>, so v1.4.0-rocky10.1 is the
first build of upstream v1.4.0 on Rocky 10. Rebuilds for CVEs bump the last
number.
Patches
Anything in patches/ is applied with git apply in filename order after the
checkout. Upstream has unmerged fixes for volume corruption on unstage
(152,
154,
155) that can go
here. The matching manifest fix is
chart #31.
Use
The chart has no imagePullSecrets support, so the package has to be publicly
readable.
images:
plugin:
image: git.tiuxo.com/brian/synology-csi-rocky
tag: v1.4.0-rocky10.1