diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2020-02-28 13:59:08 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2020-02-28 13:59:08 +0100 |
commit | 21c526a80a722fef71cf22dc2ddcbf1ae89a39fd (patch) | |
tree | e7c8ff1c7f7b5d300095c32ba563646bb1d472fa /scripts/ci/Dockerfile.bitbake | |
parent | 91bad00e3dbad8512937a898e5a86bf0f1f078c4 (diff) | |
download | meta-updater-21c526a80a722fef71cf22dc2ddcbf1ae89a39fd.tar.gz |
Update CI scripts to match other supported branches.
This seems mostly related to 9eebc8d15a297d68fc35dd4d77fcb945d2f395b2,
which didn't make it to thud, since some of it was only required for
master.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'scripts/ci/Dockerfile.bitbake')
-rw-r--r-- | scripts/ci/Dockerfile.bitbake | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/scripts/ci/Dockerfile.bitbake b/scripts/ci/Dockerfile.bitbake index c91f94c..51eaa57 100644 --- a/scripts/ci/Dockerfile.bitbake +++ b/scripts/ci/Dockerfile.bitbake | |||
@@ -1,15 +1,17 @@ | |||
1 | FROM debian:stable | 1 | FROM debian:stretch |
2 | LABEL Description="Image for bitbaking" | 2 | LABEL Description="Image for bitbaking" |
3 | 3 | ||
4 | RUN sed -i 's#deb http://deb.debian.org/debian stable main#deb http://deb.debian.org/debian stable main contrib#g' /etc/apt/sources.list | 4 | RUN sed -i 's#deb http://deb.debian.org/debian stretch main#deb http://deb.debian.org/debian stretch main contrib#g' /etc/apt/sources.list |
5 | RUN sed -i 's#deb http://deb.debian.org/debian stable-updates main#deb http://deb.debian.org/debian stable-updates main contrib#g' /etc/apt/sources.list | 5 | RUN sed -i 's#deb http://deb.debian.org/debian stretch-updates main#deb http://deb.debian.org/debian stretch-updates main contrib#g' /etc/apt/sources.list |
6 | RUN apt-get update -q && apt-get install -qy \ | 6 | RUN apt-get update -q && apt-get install --no-install-suggests --no-install-recommends -qy \ |
7 | awscli \ | ||
7 | build-essential \ | 8 | build-essential \ |
8 | bzip2 \ | 9 | bzip2 \ |
9 | chrpath \ | 10 | chrpath \ |
10 | cpio \ | 11 | cpio \ |
11 | default-jre \ | 12 | default-jre \ |
12 | diffstat \ | 13 | diffstat \ |
14 | file \ | ||
13 | gawk \ | 15 | gawk \ |
14 | gcc-multilib \ | 16 | gcc-multilib \ |
15 | git-core \ | 17 | git-core \ |
@@ -17,26 +19,40 @@ RUN apt-get update -q && apt-get install -qy \ | |||
17 | iproute \ | 19 | iproute \ |
18 | libpython-dev \ | 20 | libpython-dev \ |
19 | libsdl1.2-dev \ | 21 | libsdl1.2-dev \ |
22 | libvirt-clients \ | ||
23 | libvirt-daemon-system \ | ||
20 | locales \ | 24 | locales \ |
21 | ovmf \ | 25 | ovmf \ |
26 | openssh-client \ | ||
22 | procps \ | 27 | procps \ |
23 | python \ | 28 | python \ |
24 | python3 \ | 29 | python3 \ |
25 | python3-pexpect \ | 30 | python3-pexpect \ |
26 | qemu \ | 31 | qemu-kvm \ |
27 | socat \ | 32 | socat \ |
33 | sudo \ | ||
28 | texinfo \ | 34 | texinfo \ |
29 | unzip \ | 35 | unzip \ |
30 | wget \ | 36 | wget \ |
31 | xterm \ | 37 | xterm \ |
32 | xz-utils | 38 | xz-utils |
33 | 39 | ||
34 | ARG uid=1000 | 40 | ARG uid=4321 |
35 | ARG gid=1000 | 41 | ARG gid=4321 |
36 | RUN groupadd -g $gid bitbake | 42 | RUN groupadd -g $gid bitbake |
37 | RUN useradd -m -u $uid -g $gid bitbake | 43 | RUN useradd -m -u $uid -g $gid -s /bin/bash bitbake |
38 | 44 | ||
39 | RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen | 45 | RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen |
40 | ENV LC_ALL="en_US.UTF-8" | 46 | ENV LC_ALL="en_US.UTF-8" |
41 | ENV LANG="en_US.UTF-8" | 47 | ENV LANG="en_US.UTF-8" |
42 | ENV LANGUAGE="en_US.UTF-8" | 48 | ENV LANGUAGE="en_US.UTF-8" |
49 | |||
50 | # script to mirror kvm group id with host | ||
51 | RUN echo "bitbake ALL=NOPASSWD: /usr/local/bin/setup_kvm.sh" >> /etc/sudoers | ||
52 | COPY ./docker/setup_kvm.sh /usr/local/bin/setup_kvm.sh | ||
53 | |||
54 | # other ci scripts | ||
55 | RUN mkdir /scripts | ||
56 | COPY configure.sh build.sh oe-selftest.sh /scripts/ | ||
57 | |||
58 | USER "bitbake" | ||