Improve packaging

This commit is contained in:
2025-01-25 01:33:30 -05:00
parent 15c26e1a29
commit 466e4e7073
6 changed files with 175 additions and 117 deletions

20
docker/Dockerfile-debian Normal file
View File

@@ -0,0 +1,20 @@
ARG DISTRO=debian
ARG RELEASE=11
FROM ${DISTRO}:${RELEASE}
ARG DISTRO
ARG RELEASE
RUN apt-get update && apt-get install -y \
dpkg-dev \
build-essential \
fakeroot \
make \
&& rm -rf /var/lib/apt/lists/*
RUN echo -e "#!/bin/bash\nmake actually-package-${DISTRO}-${RELEASE}" > /init.sh \
&& chmod 755 /init.sh
WORKDIR /src
CMD ["/bin//bash", "/init.sh"]

View File

@@ -5,11 +5,18 @@ ARG RELEASE=7
FROM ${DISTRO}:${RELEASE}
ARG DISTRO
ARG RELEASE
RUN yum install -y \
rpm-build \
make \
oracle-epel-release-el7 \
&& yum clean all
RUN echo -e "#!/bin/bash\nmake actually-package-${DISTRO}-${RELEASE}" > /init.sh \
&& chmod 755 /init.sh
WORKDIR /src
CMD ["make", "package-rpm"]
CMD ["/bin/bash", "/init.sh"]

View File

@@ -5,10 +5,17 @@ ARG RELEASE=9
FROM ${DISTRO}:${RELEASE}
ARG DISTRO
ARG RELEASE
RUN dnf install -y \
rpm-build \
make \
&& dnf clean all
RUN echo -e "#!/bin/bash\nmake actually-package-${DISTRO}-${RELEASE}" > /init.sh \
&& chmod 755 /init.sh
WORKDIR /src
CMD ["make", "package-rpm"]
CMD ["/bin/bash", "/init.sh"]

View File

@@ -3,6 +3,9 @@ ARG RELEASE=noble
FROM ${DISTRO}:${RELEASE}
ARG DISTRO
ARG RELEASE
RUN apt-get update && apt-get install -y \
dpkg-dev \
build-essential \
@@ -10,5 +13,8 @@ RUN apt-get update && apt-get install -y \
make \
&& rm -rf /var/lib/apt/lists/*
RUN echo -e "#!/bin/bash\nmake actually-package-${DISTRO}-${RELEASE}" > /init.sh \
&& chmod 755 /init.sh
WORKDIR /src
CMD ["make", "package-deb"]
CMD ["/bin/bash", "/init.sh"]