update sbuild-worker

parent e3738306
Pipeline #320 failed with stages
FROM parrotsec/parrot-core:latest
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 4.1
ENV VERSION 4.7
# Install components
RUN apt-get update; apt-get -y dist-upgrade;apt-get -y install sbuild devscripts dh-autoreconf dh-systemd ubuntu-dev-tools debhelper moreutils sudo gnupg2 dirmngr; rm -rf /var/lib/apt/lists/*
RUN apt-get update; apt-get -y dist-upgrade;apt-get -y install sbuild dh-autoreconf debhelper devscripts moreutils sudo gnupg2 dirmngr; rm -rf /var/lib/apt/lists/*
# Add builder user and perform hacks
RUN useradd -ms /bin/bash builder;adduser builder sbuild;adduser root sbuild;mkdir -p /etc/sudoers.d;echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd;echo true > /sbin/modprobe;chmod +x /sbin/modprobe
RUN useradd -ms /bin/bash builder;adduser builder sbuild;adduser root sbuild;mkdir -p /etc/sudoers.d;echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd;echo true > /sbin/modprobe;chmod +x /sbin/modprobe;sed -i 's/mount -t proc proc/mount -t --bind \/proc/' /usr/bin/sbuild-createchroot
# Copy scripts
......
......@@ -2,7 +2,7 @@
set -e
DEBUILD_DEPENDENCIES="parrot-archive-keyring,ca-certificates,eatmydata,ccache,gnupg,dirmngr,devscripts,dh-autoreconf,dh-systemd,ubuntu-dev-tools,debhelper,moreutils,dh-apparmor,dh-di,dh-exec,dh-make,dh-python"
DEBUILD_DEPENDENCIES="parrot-archive-keyring,ca-certificates,eatmydata,ccache,gnupg2,dirmngr,devscripts,debhelper,dh-autoreconf,ubuntu-dev-tools,moreutils,dh-apparmor,dh-di,dh-exec,dh-make,dh-python"
CHROOT_AMD64="/var/lib/schroot/chroots/parrot-amd64"
CHROOT_I386="/var/lib/schroot/chroots/parrot-i386"
CHROOT_ARM64="/var/lib/schroot/chroots/parrot-arm64"
......@@ -18,7 +18,7 @@ function amd64_build {
fi
if [ -d $CHROOT_AMD64 ];then
echo -e "deb http://archive.parrotsec.org/parrot stable main contrib non-free\ndeb-src http://archive.parrotsec.org/parrot testing main contrib non-free"\
echo -e "deb http://deb.parrotsec.org/parrot testing main contrib non-free\ndeb-src http://deb.parrotsec.org/parrot testing main contrib non-free"\
> $CHROOT_AMD64/etc/apt/sources.list
schroot -u root -d / -c source:parrot-amd64 -- apt update
schroot -u root -d / -c source:parrot-amd64 -- apt -y full-upgrade
......
......@@ -8,6 +8,9 @@ echo -e "\
\$mailto = 'builder@parrotsec.org';\n\
\$distribution = 'parrot';\n\
\$build_arch_all = 1;\n\
\$purge_build_directory = 'successful';\n\
\$purge_session = 'successful';\n\
\$purge_build_deps = 'successful';\n\
\n\
1;" > $HOME/.sbuildrc
cat $HOME/.sbuildrc
......@@ -19,7 +22,7 @@ source-root-groups=root,sbuild,admin,builder\n\
preserve-environment=true\"\n\
SKIP_UPDATES='1'\n\
SKIP_PROPOSED='1'\n\
DEBOOTSTRAP_INCLUDE='devscripts ubuntu-dev-tools ca-certificates parrot-archive-keyring gnupg'\n\
DEBOOTSTRAP_INCLUDE='devscripts ubuntu-dev-tools debhelper ca-certificates parrot-archive-keyring gnupg2'\n\
" > $HOME/.mk-sbuild.rc
cat $HOME/.mk-sbuild.rc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment