-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (48 loc) · 1.36 KB
/
Dockerfile
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
MAINTAINER Marco Guerri
RUN apt-get update && \
apt-get install -y \
git \
diffstat \
gawk \
chrpath \
python2.7 \
locales \
virtualenv \
binutils \
cpio \
cpp \
g++ \
gcc \
make \
qemu-kvm \
texinfo \
vim \
wget \
bridge-utils \
isc-dhcp-client \
libcap2-bin
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
RUN useradd -m dev
USER dev
RUN cd $HOME && \
mkdir openembedded && cd openembedded && \
git clone -b sumo https://github.com/openembedded/openembedded-core.git && \
install -d openembedded-core/build/conf && \
git clone -b 1.38 git://git.openembedded.org/bitbake.git && \
git clone -b sumo git://github.com/openembedded/meta-openembedded.git && \
git clone -b sumo https://github.com/agherzan/meta-raspberrypi && \
git clone https://github.com/marcoguerri/meta-thirtyd
ARG home=/home/dev
COPY local.conf $home/openembedded/openembedded-core/build/conf/local.conf
COPY bblayers.conf $home/openembedded/openembedded-core/build/conf/bblayers.conf
RUN virtualenv -p /usr/bin/python2.7 $HOME/p27
RUN . ./$home/p27/bin/activate && \
cd $home/openembedded/openembedded-core && \
. ./oe-init-build-env && \
bitbake core-image-minimal
COPY run_qemu.sh $home