diff options
Diffstat (limited to 'scripts/ci/Dockerfile.bitbake')
-rw-r--r-- | scripts/ci/Dockerfile.bitbake | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/scripts/ci/Dockerfile.bitbake b/scripts/ci/Dockerfile.bitbake index 75bad14..51eaa57 100644 --- a/scripts/ci/Dockerfile.bitbake +++ b/scripts/ci/Dockerfile.bitbake | |||
@@ -3,13 +3,15 @@ LABEL Description="Image for bitbaking" | |||
3 | 3 | ||
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 | 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 stretch-updates main#deb http://deb.debian.org/debian stretch-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,14 +19,18 @@ 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 \ |
@@ -34,11 +40,19 @@ RUN apt-get update -q && apt-get install -qy \ | |||
34 | ARG uid=4321 | 40 | ARG uid=4321 |
35 | ARG gid=4321 | 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" |
43 | 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 | |||
44 | USER "bitbake" | 58 | USER "bitbake" |