forked from kronosnet/ci-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci-update-apt
executable file
·31 lines (25 loc) · 2.45 KB
/
ci-update-apt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# ENTRY POINT (old / done)
set -e
$CITHOME/ci-update-common
export DEBIAN_FRONTEND=noninteractive
apt-get update --allow-releaseinfo-change || apt-get update
apt-get -y dist-upgrade
apt-get -y autoremove
apt-get -y install valgrind || true
rubydeps="ruby-dev ruby ruby-bundler ruby-backports ruby-childprocess ruby-daemons ruby-ethon ruby-ffi ruby-eventmachine ruby-json ruby-open4 ruby-sinatra ruby-ruby2-keywords ruby-mustermann ruby-rack ruby-rack-protection ruby-rack-test ruby-sinatra ruby-test-unit puma"
apt-get -y install ruby-rack-session || true
apt-get -y install ruby-rackup || true
apt-get -y install rsync build-essential autoconf libtool-bin make git gcc clang autoconf autotools-dev autopoint gettext libtool libnss3-dev libnspr4-dev libssl-dev libgcrypt-dev pkg-config zlib1g-dev liblz4-dev liblzo2-dev liblzma-dev libbz2-dev libsctp-dev libqb-dev libxml2-dev doxygen groff libdbus-1-dev libsnmp-dev libsystemd-dev libcgroup-dev curl jq check python3-pexpect python3-boto3 python3-pycurl python3-suds python3-requests python3-googleapi time libxml2-utils xsltproc libglib2.0-dev docbook-xsl chrpath perl python3-dev libltdl-dev libncurses-dev libpam0g-dev libxml2-dev libxslt1-dev uuid-dev libgnutls28-dev asciidoc bison byacc flex help2man cluster-glue-dev python3-systemd libopenipmi-dev libnl-3-dev libnl-route-3-dev python3-requests libzstd-dev libaio-dev libvirt-dev python3-venv python3-setuptools python3-setuptools-scm python3-lxml python3-pyparsing python3-pip python3-tornado python3-pyagentx psmisc libcurl4-openssl-dev libcmocka-dev shellcheck libblkid-dev libnss3-tools uuid-runtime $rubydeps $rustdeps
apt-get -y install python3-dacite || true
apt-get -y install python3-distro || true
apt-get -y install inkscape || true
apt-get -y install llvm || true
if [ -n "$EXTRA_ARCH" ]; then
dpkg --add-architecture $EXTRA_ARCH
apt-get update
apt-get -y install crossbuild-essential-$EXTRA_ARCH libnspr4-dev:$EXTRA_ARCH libnss3-dev:$EXTRA_ARCH libssl-dev:$EXTRA_ARCH libgcrypt-dev:$EXTRA_ARCH zlib1g-dev:$EXTRA_ARCH liblz4-dev:$EXTRA_ARCH liblzo2-dev:$EXTRA_ARCH liblzma-dev:$EXTRA_ARCH libbz2-dev:$EXTRA_ARCH libsctp-dev:$EXTRA_ARCH libnl-3-dev:$EXTRA_ARCH libnl-route-3-dev:$EXTRA_ARCH libzstd-dev:$EXTRA_ARCH pkg-config:$EXTRA_ARCH pkgconf:$EXTRA_ARCH
fi
apt-get -y clean
getent group haclient >/dev/null || addgroup --system haclient
getent passwd hacluster >/dev/null || adduser --system --ingroup haclient --gecos "cluster user" --no-create-home hacluster