fixes
This commit is contained in:
+6
-6
@@ -10,20 +10,20 @@ RUN echo 'keepcache=True' >> /etc/dnf/dnf.conf
|
|||||||
|
|
||||||
# deps
|
# deps
|
||||||
RUN --mount=type=cache,target=/var/cache/libdnf5 <<EOF
|
RUN --mount=type=cache,target=/var/cache/libdnf5 <<EOF
|
||||||
# dnf install -y kernel-devel-$(uname -r | awk -F'-' '{print $1}')
|
dnf install -y kernel-devel-$(uname -r | awk -F'-' '{print $1}')
|
||||||
dnf install -y https://zfsonlinux.org/fedora/zfs-release-3-1$(rpm --eval "%{dist}").noarch.rpm
|
dnf install -y https://zfsonlinux.org/fedora/zfs-release-3-1$(rpm --eval "%{dist}").noarch.rpm
|
||||||
dnf install -y zfs btop borgbackup
|
dnf install -y zfs btop borgbackup
|
||||||
rm -rf /run/dnf && rm -rf /tmp/*
|
dnf clean all && rm -rf /run/dnf && rm -rf /tmp/*
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
RUN bootc container lint
|
RUN bootc container lint
|
||||||
|
|
||||||
FROM quay.io/coreos/chunkah AS chunkah
|
FROM quay.io/coreos/chunkah AS chunkah
|
||||||
ARG CHUNKAH_CONFIG_STR
|
ARG CHUNKAH_CONFIG_STR
|
||||||
RUN --mount=from=builder,src=/,target=/chunkah,ro \
|
RUN --mount=type=bind,target=/run/src,rw \
|
||||||
--mount=type=bind,target=/run/src,rw \
|
--mount=from=builder,target=/chunkah,ro \
|
||||||
chunkah build --prune /sysroot/ --max-layers 128 \
|
chunkah build --prune /sysroot/ --max-layers 128 \
|
||||||
--label ostree.commit- --label ostree.final-diffid- \
|
--label ostree.commit- --label ostree.final-diffid- \
|
||||||
--output oci:/run/src/out
|
--output oci:/run/src/out
|
||||||
|
|
||||||
FROM oci:out
|
FROM oci:out
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ REPO="gitea.wefers.page/julian/backup-server"
|
|||||||
TAG="latest"
|
TAG="latest"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
sudo rm -rf out
|
||||||
# --no-cache \
|
# --no-cache \
|
||||||
sudo buildah build \
|
sudo buildah build \
|
||||||
-t ${REPO}:${TAG} \
|
-t ${REPO}:${TAG} \
|
||||||
|
|||||||
Reference in New Issue
Block a user