Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
reproducible alpine: do not pull full aports git history
· bc03526e
kpcyrd
authored
Dec 03, 2019
bc03526e
reproducible alpine: set environment for future builds in one place
· 71380c9a
kpcyrd
authored
Dec 03, 2019
71380c9a
reproducible alpine: fix $PATH issues
· a8815060
kpcyrd
authored
Dec 03, 2019
a8815060
Show whitespace changes
Inline
Side-by-side
bin/reproducible_setup_alpine_schroot.sh
View file @
a8815060
...
...
@@ -109,6 +109,7 @@ if [ "$HOSTNAME" = "osuosl-build170-amd64" ] ; then
# workaround for certificates that aren't valid in the future.
# we might need to replace this with a mitm proxy in the future
echo
"insecure"
|
tee
-a
"
$SCHROOT_BASE
/
$TARGET
/var/lib/jenkins/.curlrc"
GIT_OPTIONS
=
'GIT_SSL_NO_VERIFY=1'
fi
$USERCMD
gpg
--check-trustdb
# first run will create ~/.gnupg/gpg.conf
echo
"keyserver-options auto-key-retrieve"
|
tee
-a
"
$SCHROOT_BASE
/
$TARGET
/var/lib/jenkins/.gnupg/gpg.conf"
...
...
@@ -159,16 +160,11 @@ wQIDAQAB
-----END PUBLIC KEY-----
__END__
# Disable SSL verification for future builds
if
[
"
$HOSTNAME
"
=
"osuosl-build170-amd64"
]
;
then
GIT_OPTIONS
=
'GIT_SSL_NO_VERIFY=1'
fi
echo
"
$(
date
-u
)
- cloning aports repo"
$USERCMD
sh
-c
"
$GIT_OPTIONS
git clone https://git.alpinelinux.org/aports.git /var/lib/jenkins/aports"
$USERCMD
sh
-c
"
$GIT_OPTIONS
git clone
--depth=1
https://git.alpinelinux.org/aports.git /var/lib/jenkins/aports"
# build and install a patched abuild
$USERCMD
sh
-c
"cd /var/lib/jenkins/aports/main/abuild && base64 -d | git apply - && abuild -r && apk add ~/packages/main/x86_64/abuild-3.5.0_rc2-r1.apk && git checkout ."
<<-
__END__
$USERCMD
sh
-c
"cd /var/lib/jenkins/aports/main/abuild && base64 -d | git apply - &&
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
abuild -r &&
sudo /sbin/
apk add ~/packages/main/x86_64/abuild-3.5.0_rc2-r1.apk && git checkout ."
<<-
__END__
ZGlmZiAtLWdpdCBhL21haW4vYWJ1aWxkLzAwMDItcmVwcm8ucGF0Y2ggYi9tYWluL2FidWlsZC8w
MDAyLXJlcHJvLnBhdGNoCm5ldyBmaWxlIG1vZGUgMTAwNjQ0CmluZGV4IDAwMDAwMDAwLi41ZmYy
MjAxMwotLS0gL2Rldi9udWxsCisrKyBiL21haW4vYWJ1aWxkLzAwMDItcmVwcm8ucGF0Y2gKQEAg
...
...