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
fc0df6e0
Commit
fc0df6e0
authored
3 years ago
by
Pavel Vondruska
Browse files
Options
Downloads
Patches
Plain Diff
Automaticka detekce posledni stable verze GO
parent
5d41134a
No related branches found
No related tags found
No related merge requests found
Pipeline
#1212
failed
3 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
make.sh
+4
-3
4 additions, 3 deletions
make.sh
with
4 additions
and
3 deletions
make.sh
+
4
−
3
View file @
fc0df6e0
...
@@ -9,7 +9,7 @@ set -x
...
@@ -9,7 +9,7 @@ set -x
# Nastaveni promennych, pokud je SINVERSION zakomentovana, pokusime se odhadnout nejnovejsi
# Nastaveni promennych, pokud je SINVERSION zakomentovana, pokusime se odhadnout nejnovejsi
export
DEBIAN_FRONTEND
=
noninteractive
export
DEBIAN_FRONTEND
=
noninteractive
export
GOVERSION
=
1.17.
5
OS
=
linux
ARCH
=
amd64
#
export GOVERSION=
go
1.17.
6
OS=linux ARCH=amd64
#export SINVERSION=3.9.2
#export SINVERSION=3.9.2
# Nacteni promennych o bezicim systemu vcetne verzi
# Nacteni promennych o bezicim systemu vcetne verzi
...
@@ -37,14 +37,15 @@ apt install -yqqq build-essential dpkg-dev debhelper build-essential libssl-dev
...
@@ -37,14 +37,15 @@ apt install -yqqq build-essential dpkg-dev debhelper build-essential libssl-dev
# Automaticka detekce posledni releasnute verze
# Automaticka detekce posledni releasnute verze
SINVERSION
=
${
SINVERSION
:-
$(
curl
-s
https://github.com/sylabs/singularity/releases/latest |
grep
-Po
"
\/
v
\K
[^
\"
]+"
)
}
SINVERSION
=
${
SINVERSION
:-
$(
curl
-s
https://github.com/sylabs/singularity/releases/latest |
grep
-Po
"
\/
v
\K
[^
\"
]+"
)
}
GOVERSION
=
${
GOVERSION
:-
$(
curl
-s
https://go.dev/VERSION?m
=
text
)
}
# Priprava adresare pro hotove balicky a zapamatovani cesty
# Priprava adresare pro hotove balicky a zapamatovani cesty
mkdir
build
mkdir
build
export
BUILD
=
${
PWD
}
/build
export
BUILD
=
${
PWD
}
/build
# Stazeni a instalace GO
# 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
wget
-q
-O
/tmp/
${
GOVERSION
}
.
${
OS
}
-
${
ARCH
}
.tar.gz https://dl.google.com/go/
${
GOVERSION
}
.
${
OS
}
-
${
ARCH
}
.tar.gz
&&
tar
-C
/usr/local
-xzf
/tmp/
${
GOVERSION
}
.
${
OS
}
-
${
ARCH
}
.tar.gz
rm
/tmp/
go
${
GOVERSION
}
.
${
OS
}
-
${
ARCH
}
.tar.gz
rm
/tmp/
${
GOVERSION
}
.
${
OS
}
-
${
ARCH
}
.tar.gz
# Nastaveni promennych GO
# Nastaveni promennych GO
echo
'export GOPATH=${HOME}/go'
>>
~/.bashrc
echo
'export GOPATH=${HOME}/go'
>>
~/.bashrc
...
...
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