Skip to content

Commit

Permalink
refactor: Use fuse-overlayfs to support RPM builds with Btrfs
Browse files Browse the repository at this point in the history
Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
  • Loading branch information
pojntfx committed Oct 16, 2024
1 parent 369c576 commit 0e7709c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hydrapp/pkg/builders/rpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM fedora:40

# Install native dependencies
RUN dnf install -y fedora-packager @development-tools qemu-user-static rpm-sign
RUN dnf install -y fedora-packager @development-tools qemu-user-static rpm-sign fuse-overlayfs

RUN git config --global --add safe.directory '*'

Expand Down
3 changes: 3 additions & 0 deletions hydrapp/pkg/builders/rpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export BASEDIR="${PWD}/${GOMAIN}"
echo "%_signature gpg
%_gpg_name $(echo ${PGP_KEY_ID} | base64 -d)" >"${HOME}/.rpmmacros"

# Use `fuse-overlayfs` to allow using Docker in Docker for builds
sed -i 's/#mount_program/mount_program/' /usr/share/containers/storage.conf

# Build tarball and source package
export PACKAGE="${APP_ID}-${PACKAGE_VERSION}"
export SUFFIX="${BRANCH_TIMESTAMP_UNIX}.${PACKAGE_SUFFIX}"
Expand Down

0 comments on commit 0e7709c

Please sign in to comment.