Skip to content
Snippets Groups Projects
Commit b3bb1abf authored by Pavel Vondruska's avatar Pavel Vondruska
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #980 passed
build:bullseye:
image: debian:bullseye
script:
- ./make.sh
artifacts:
paths:
- build/*
build:buster:
image: debian:buster
script:
- ./make.sh
artifacts:
paths:
- build/*
build:stretch:
image: debian:stretch
script:
- ./make.sh
artifacts:
paths:
- build/*
make.sh 0 → 100755
#!/bin/bash
# wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/585/jobs/artifacts/master/download?job=build:bullseye"
set -x
export DEBIAN_FRONTEND=noninteractive
export GOVERSION=1.17.5 OS=linux ARCH=amd64
export SINVERSION=3.9.2
. /etc/os-release
function get_debian_security() {
if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi
}
cat > /etc/apt/sources.list << EOSOURCES
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
EOSOURCES
apt update -qqq
apt install -yqqq build-essential dpkg-dev debhelper build-essential libssl-dev uuid-dev libseccomp-dev pkg-config squashfs-tools cryptsetup wget curl git devscripts dh-golang
mkdir build
export BUILD=${PWD}/build
wget -q -O /tmp/go${GOVERSION}.${OS}-${ARCH}.tar.gz https://dl.google.com/go/go${GOVERSION}.${OS}-${ARCH}.tar.gz && tar -C /usr/local -xzf /tmp/go${GOVERSION}.${OS}-${ARCH}.tar.gz
rm /tmp/go${GOVERSION}.${OS}-${ARCH}.tar.gz
echo 'export GOPATH=${HOME}/go' >> ~/.bashrc
echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc
source ~/.bashrc
mkdir -p ${GOPATH}/src/github.com/sylabs && cd ${GOPATH}/src/github.com/sylabs && wget -q -O singularity.tar.gz https://github.com/sylabs/singularity/releases/download/v${SINVERSION}/singularity-ce-${SINVERSION}.tar.gz && tar xvf singularity.tar.gz && cd singularity-ce-${SINVERSION}
dpkg-buildpackage -uc -us -b
cd ..
mv *.deb ${BUILD}/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment