Improve packaging
This commit is contained in:
20
docker/Dockerfile-debian
Normal file
20
docker/Dockerfile-debian
Normal 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"]
|
||||
@@ -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"]
|
||||
@@ -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"]
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user