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
1ddcc816
"src/git@gitlab.cesnet.cz:madcatxster/molstar.git" did not exist on "a879c05b1fb0b356a38fff65d54d69db44a245e3"
Commit
1ddcc816
authored
3 years ago
by
Pavel Vondruska
Browse files
Options
Downloads
Patches
Plain Diff
Automaticka detekce posledni verze, pridani komentaru
parent
b3bb1abf
No related branches found
No related tags found
No related merge requests found
Pipeline
#982
passed
3 years ago
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
make.sh
+17
-2
17 additions, 2 deletions
make.sh
with
17 additions
and
2 deletions
make.sh
+
17
−
2
View file @
1ddcc816
#!/bin/bash
# wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/585/jobs/artifacts/master/download?job=build:bullseye"
# Prikaz pro stazeni baliku
# wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/586/jobs/artifacts/master/download?job=build:bullseye"
set
-x
# Nastaveni promennych, pokud je SINVERSION zakomentovana, pokusime se odhadnout nejnovejsi
export
DEBIAN_FRONTEND
=
noninteractive
export
GOVERSION
=
1.17.5
OS
=
linux
ARCH
=
amd64
export
SINVERSION
=
3.9.2
#
export SINVERSION=3.9.2
# Nacteni promennych o bezicim systemu vcetne verzi
.
/etc/os-release
# Od Debian 11 Bullseye ma debian-security trochu jinou cestu, abychom mohli pouzit heredoc, rozskocime si pres funkci
function
get_debian_security
()
{
if
[
"
${
VERSION_ID
}
"
-lt
"11"
]
;
then
echo
"
${
VERSION_CODENAME
}
/updates"
;
else
echo
"
${
VERSION_CODENAME
}
-security"
;
fi
}
# Vygenerovani sources.list podle verze Debianu
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
...
...
@@ -24,23 +29,33 @@ deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main cont
deb-src http://ftp.zcu.cz/pub/linux/debian-security
$(
get_debian_security
)
main contrib non-free
EOSOURCES
# Instalace buildovacich veci a zavislosti
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
# Automaticka detekce posledni releasnute verze
SINVERSION
=
${
SINVERSION
:-
$(
curl
-s
https://github.com/sylabs/singularity/releases/latest |
grep
-Po
"
\/
v
\K
[^
\"
]+"
)
}
# Priprava adresare pro hotove balicky a zapamatovani cesty
mkdir
build
export
BUILD
=
${
PWD
}
/build
# Stazeni a instalace GO
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
# Nastaveni promennych GO
echo
'export GOPATH=${HOME}/go'
>>
~/.bashrc
echo
'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin'
>>
~/.bashrc
source
~/.bashrc
# Stazeni a rozbaleni zdrojovych kodu
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
}
# Build balicku
dpkg-buildpackage
-uc
-us
-b
cd
..
# Presunuti balicku do spravneho adresare, aby ho gitlab vystavil jako artifact
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