Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
2
reproducible alpine: ensure target folder exists
· 0c6a4c82
kpcyrd
authored
Jun 05, 2019
and
Holger Levsen
committed
Jun 05, 2019
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
0c6a4c82
reproducible alpine: allow untar in sudo
· 514d5ef5
kpcyrd
authored
Jun 05, 2019
and
Holger Levsen
committed
Jun 05, 2019
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
514d5ef5
Show whitespace changes
Inline
Side-by-side
bin/reproducible_setup_alpine_schroot.sh
View file @
514d5ef5
...
...
@@ -35,6 +35,7 @@ bootstrap() {
curl
-fO
"
$ALPINE_MIRROR
/
$LATEST_MINIROOT
"
echo
"
$(
date
-u
)
- extracting alpine minirootfs"
mkdir
-p
"
$SCHROOT_BASE
/
$TARGET
.new"
sudo tar
xzf
"./
$LATEST_MINIROOT
"
-C
"
$SCHROOT_BASE
/
$TARGET
.new"
if
[
-d
"
$SCHROOT_BASE
/
$TARGET
"
]
;
then
...
...
hosts/common/etc/sudoers.d/jenkins
View file @
514d5ef5
...
...
@@ -9,6 +9,7 @@ jenkins ALL= \
/bin/chmod +x /chroots/*, \
/bin/tar -c --exclude ./sys/\* --exclude ./proc/\* -f /schroots/*, \
/bin/tar xzf archlinux-bootstrap-*tar.gz -C /schroots, \
/bin/tar xzf ./alpine-minirootfs-*.tar.gz -C /schroots/alpine.new, \
/usr/sbin/chroot /schroots/*, \
/usr/sbin/chroot /chroots/*, \
/usr/sbin/chroot /media/*, \
...
...
hosts/jenkins/etc/sudoers.d/jenkins
View file @
514d5ef5
...
...
@@ -9,6 +9,7 @@ jenkins ALL= \
/bin/chmod +x /chroots/*, \
/bin/tar -c --exclude ./sys/\* --exclude ./proc/\* -f /schroots/*, \
/bin/tar xzf archlinux-bootstrap-*tar.gz -C /schroots, \
/bin/tar xzf ./alpine-minirootfs-*.tar.gz -C /schroots/alpine.new, \
/usr/sbin/chroot /schroots/*, \
/usr/sbin/chroot /chroots/*, \
/usr/sbin/chroot /media/*, \
...
...