Created
June 12, 2020 15:45
-
-
Save truatpasteurdotfr/ec6d29cbdf158853f2a753058b1dff38 to your computer and use it in GitHub Desktop.
Singularity(alternative a docker build host) recipe for a CentOS-7 based veyon builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap: docker | |
From: centos:7 | |
%post | |
mkdir -p /selinux /misc /net | |
mkdir -p /pasteur | |
mkdir -p /local-storage /mnt/beegfs /baycells/home /baycells/scratch /c6/shared /c6/eb /local/gensoft2 /c6/shared/rpm /Bis/Scratch2 /mnt/beegfs | |
mkdir -p /c7/shared /c7/scratch /c7/home | |
yum -y update | |
# install the dependencies | |
# github.com/veyon/veyon/.ci/linux.centos.77/Dockerfile | |
yum -y install epel-release centos-release-scl | |
yum -y install \ | |
cmake3 \ | |
controls2-devel \ | |
cyrus-sasl-devel \ | |
devtoolset-7 \ | |
fakeroot \ | |
git \ | |
libjpeg-turbo-devel \ | |
libpng-devel \ | |
libXcomposite-devel \ | |
libXcursor-devel \ | |
libXdamage-devel \ | |
libXfixes-devel \ | |
libXinerama-devel \ | |
libXrandr-devel \ | |
libXrandr-devel \ | |
libXtst-devel \ | |
lzo-devel \ | |
make \ | |
openldap-devel \ | |
openssl-devel \ | |
pam-devel \ | |
procps-devel \ | |
qca-qt5-devel \ | |
qca-qt5-ossl \ | |
qt5-linguist \ | |
qt5-qtbase \ | |
qt5-qtbase-devel \ | |
qt5-qtquick \ | |
qt5-qttools \ | |
rpm-build \ | |
zlib-devel \ | |
\ | |
redhat-rpm-config \ | |
rpm-build \ | |
wget \ | |
\ | |
qt5-qtquickcontrols2-devel | |
yum clean all | |
%runscript | |
echo "CentOS-7 builder for veyon" | |
echo "ex of usage:\nsingularity shell -H /path/to/temporary/home c7-veyon-builder.sif" | |
echo "mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}" | |
echo "(cd ~/rpmbuild/SOURCES && wget https://github.com/veyon/veyon/releases/download/v4.4.0/veyon-4.4.0-src.tar.bz2)" | |
echo "(cd ~/rpmbuild/SPECS && wget https://gist.githubusercontent.com/truatpasteurdotfr/d2b6033b7256389584895a4fbea38165/raw/081a69119403754882ed1481c2e6013f0d1cbae9/veyon.spec-4.4.0 -O veyon.spec)" | |
echo "rpmbuild -ba ~/rpmbuild/SPECS/veyon.spec" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course, one can install the packages on their current CentOS-7 machine (bare metal or docker), and just run the wget/rpmbuil stages