Skip to content

Commit 30e2cc6

Browse files
committed
feat(Dockerfile): create /run/lock
Create /run/lock directory during dockerfile build required by crun container runtime
1 parent 267d411 commit 30e2cc6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ RUN dnf update -y && \
3333
glibc && \
3434
dnf clean all
3535

36+
RUN mkdir /run/lock
37+
3638
WORKDIR /
3739
COPY --from=builder /workspace/lvms .
3840
USER 65532:65532

internal/controllers/lvmcluster/resource/vgmanager_daemonset.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ var (
8484
VolumeSource: corev1.VolumeSource{
8585
HostPath: &corev1.HostPathVolumeSource{
8686
Path: filepath.Dir(util.FileLockDir),
87-
Type: &HostPathDirectoryOrCreate},
87+
Type: &HostPathDirectoryOrCreate,
88+
},
8889
},
8990
}
9091
FileLockVolMount = corev1.VolumeMount{

0 commit comments

Comments
 (0)