Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
singularity-debian
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Provoz
singularity-debian
Commits
b3bb1abf
Commit
b3bb1abf
authored
3 years ago
by
Pavel Vondruska
Browse files
Options
Downloads
Patches
Plain Diff
initial commit
parents
No related branches found
No related tags found
No related merge requests found
Pipeline
#980
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+23
-0
23 additions, 0 deletions
.gitlab-ci.yml
make.sh
+46
-0
46 additions, 0 deletions
make.sh
with
69 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
23
−
0
View file @
b3bb1abf
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/*
This diff is collapsed.
Click to expand it.
make.sh
0 → 100755
+
46
−
0
View file @
b3bb1abf
#!/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
}
/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment