@@ -3,7 +3,7 @@ FROM registry.fedoraproject.org/fedora-minimal:latest AS build
33
44# Install Build dependencies and utilities.
55RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install bzip2 clang cmake git file findutils patch python3 \
6- openssl openssl-devel xz-devel libxml2-devel llvm-devel uuid-devel unzip tar xz && \
6+ openssl openssl-devel xz-devel libxml2-devel llvm-devel uuid-devel unzip tar xz zlib-devel && \
77 microdnf clean all && \
88# Verify tool / language versions versions.
99 echo "Verifying clang install" && \
@@ -16,6 +16,14 @@ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install bzip2 clang cmake
1616 command -v python3 && \
1717 python3 --version
1818
19+ # Git clone libdmg-hfsplus repo
20+ WORKDIR /usr/local/src
21+ RUN git clone https://github.com/fanquake/libdmg-hfsplus.git
22+ WORKDIR /usr/local/src/libdmg-hfsplus
23+ RUN mkdir build && cd build && \
24+ cmake .. && \
25+ make && make install
26+
1927# Git clone osxcross repo
2028WORKDIR /usr/local/src
2129RUN git clone https://github.com/tpoechtrager/osxcross.git
@@ -49,6 +57,7 @@ FROM registry.fedoraproject.org/fedora-minimal:latest
4957
5058WORKDIR /
5159COPY --from=build /usr/lib/osxcross /usr/lib/osxcross
60+ COPY --from=build /usr/local/bin/dmg /usr/bin
5261
5362LABEL org.opencontainers.image.authors "Naev Dev Team"
5463LABEL org.opencontainers.image.source "https://github.com/naev/naev-infrastructure"
@@ -73,12 +82,14 @@ ENV HOST "x86_64-apple-darwin17"
7382ENV APPIMAGE_EXTRACT_AND_RUN 1
7483
7584# Install build tools.
76- RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pyyaml unzip tar xz zip && \
85+ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pyyaml unzip tar xz zlib zip && \
7786 microdnf clean all && \
7887# Verify tool version.
7988 echo "Verifying meson install" && \
8089 command -v meson && \
8190 meson --version && \
91+ echo "Verifying dmg install" && \
92+ command -v dmg && \
8293# Horrible hack: ensure a hardcoded header file path resolves.
8394 rmdir /opt && ln -s /usr/lib/osxcross/macports/pkgs/opt /opt && \
8495# Set WORKDIR when you spin up the image.
0 commit comments