#!/bin/bash # vim: sw=2 ts=2 sts=2 et : set -x cat /etc/apt/sources.list # Make sure that we aren't using the vexxhost mirrors as they have issues echo "---> Removing Vexxhost Ubuntu mirrors" sed -i 's/ubuntu.mirror.vexxhost.com/us.archive.ubuntu.com/g' /etc/apt/sources.list cat /etc/apt/sources.list DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y -u dist-upgrade DEBIAN_FRONTEND=noninteractive apt-get update && \ apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat \ libsdl1.2-dev xterm make xsltproc docbook-utils fop dblatex xmlto autoconf automake \ libtool libglib2.0-dev libarchive-dev python-git git python python-minimal repo \ tree rsync python-yaml python-requests curl tar docker.io pandoc python3 \ ruby-all-dev ruby-ffi ruby-ffi-* jekyll ruby-redcarpet npm mkdocs nodejs \ lava-tool python-pip # we have a build blocker wrt useradd - I assume it is caused by /bin/sh being dash # systemd: Performing useradd with echo "dash dash/sh boolean false" | debconf-set-selections DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash # add user ubuntu to docker group: sudo usermod -a -G docker ubuntu cat <> /etc/hosts # workaround for download-new 10.30.72.8 download-new.automotivelinux.org 10.30.72.8 download-internal.automotivelinux.org EOFHOSTS # install newer version of jjb ... fixes issues with rendering sudo pip install --upgrade --force-reinstall -v jenkins-job-builder cat <> /etc/sysctl.conf # we have a lot of make jobs, this helps a lot kernel.sched_child_runs_first = 1 # smooth over a lot of I/O requests and do less blocking vm.dirty_background_bytes = 0 vm.dirty_background_ratio = 20 vm.dirty_expire_centisecs = 4320000 vm.dirtytime_expire_seconds = 432000 vm.dirty_bytes = 0 vm.dirty_ratio = 80 vm.dirty_writeback_centisecs = 0 EOFSYSCTL ### webdocs mkdir -p /opt/AGL cd /opt/AGL/ #mkdir webdocs #cd webdocs #git clone http://github.com/iotbzh/webdocs-tools #git clone http://github.com/iotbzh/webdocs-sample git clone https://github.com/automotive-grade-linux/docs-agl cd ./docs-agl/doctools/webdocs/ npm install gem install --no-user-install -V kramdown gem install --no-user-install -V jekyll-plantuml ### hope that is enough exit 0