1#!/bin/bash
2
3set -e
4set -o xtrace
5
6############### Install packages for building
7apt-get install -y ca-certificates
8sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
9echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
10apt-get update
11
12apt-get install -y --no-remove \
13        abootimg \
14        android-sdk-ext4-utils \
15        bc \
16        bison \
17        bzip2 \
18        ccache \
19        cmake \
20        cpio \
21        g++ \
22        debootstrap \
23        fastboot \
24        flex \
25        git \
26        netcat \
27        nginx-full \
28        python3-distutils \
29        python3-minimal \
30        python3-serial \
31        python3.7 \
32        pkg-config \
33        procps \
34        rsync \
35        u-boot-tools \
36        unzip
37
38apt install -t buster-backports -y --no-remove \
39    meson
40
41# setup nginx
42sed -i '/gzip_/ s/#\ //g' /etc/nginx/nginx.conf
43cp .gitlab-ci/bare-metal/nginx-default-site  /etc/nginx/sites-enabled/default
44
45. .gitlab-ci/container/container_post_build.sh
46