mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
We have already provided DEB packages in launchpad PPA and RPM packages in COPR. Thus, we need no more deb/rpm packages in Github releases. The single binary build of mscp is an execptio. Updated container image versions: - almalinux 8.8 -> 9.3 - rocky 8.8 -> 8.9, and 9.3 is added - alpine 3.17 -> 3.19
23 lines
572 B
Docker
23 lines
572 B
Docker
FROM rockylinux:9
|
|
|
|
# install pytest, sshd for test, and rpm-build
|
|
RUN set -ex && yum -y install rpm-build rpmdevtools
|
|
|
|
ARG mscpdir="/mscp-@MSCP_VERSION@"
|
|
ARG mscptgz="mscp-@MSCP_VERSION@.tar.gz"
|
|
|
|
COPY . ${mscpdir}
|
|
|
|
# install build dependency
|
|
RUN ${mscpdir}/scripts/install-build-deps.sh
|
|
|
|
# prepare rpmbuild
|
|
RUN rpmdev-setuptree \
|
|
&& rm -rf ${mscpdir}/build \
|
|
&& tar zcvf /${mscptgz} --exclude-vcs ${mscpdir} \
|
|
&& cp /${mscptgz} ~/rpmbuild/SOURCES/ \
|
|
&& cp ${mscpdir}/rpm/mscp.spec ~/rpmbuild/SPECS/
|
|
|
|
# build rpm and src.rpm
|
|
RUN rpmbuild -ba ~/rpmbuild/SPECS/mscp.spec
|