blob: 51eaa570511372c6658eba8631bbb5c18800c73f (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
FROM debian:stretch
LABEL Description="Image for bitbaking"
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
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
RUN apt-get update -q && apt-get install --no-install-suggests --no-install-recommends -qy \
awscli \
build-essential \
bzip2 \
chrpath \
cpio \
default-jre \
diffstat \
file \
gawk \
gcc-multilib \
git-core \
iputils-ping \
iproute \
libpython-dev \
libsdl1.2-dev \
libvirt-clients \
libvirt-daemon-system \
locales \
ovmf \
openssh-client \
procps \
python \
python3 \
python3-pexpect \
qemu-kvm \
socat \
sudo \
texinfo \
unzip \
wget \
xterm \
xz-utils
ARG uid=4321
ARG gid=4321
RUN groupadd -g $gid bitbake
RUN useradd -m -u $uid -g $gid -s /bin/bash bitbake
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
ENV LC_ALL="en_US.UTF-8"
ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US.UTF-8"
# script to mirror kvm group id with host
RUN echo "bitbake ALL=NOPASSWD: /usr/local/bin/setup_kvm.sh" >> /etc/sudoers
COPY ./docker/setup_kvm.sh /usr/local/bin/setup_kvm.sh
# other ci scripts
RUN mkdir /scripts
COPY configure.sh build.sh oe-selftest.sh /scripts/
USER "bitbake"
|