-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
62 lines (50 loc) · 1.49 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
59
60
61
62
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-system-arm \
qemu-kvm \
texinfo \
vim \
wget \
bridge-utils \
isc-dhcp-client \
libcap2-bin \
sudo
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 echo "dev ALL=(ALL) NOPASSWD: /sbin/ip,/sbin/dhclient,/sbin/brctl" >> /etc/sudoers
RUN useradd -m dev
USER dev
RUN cd $HOME && \
mkdir openembedded && cd openembedded && \
git clone -b dunfell https://github.com/openembedded/openembedded-core.git && \
install -d openembedded-core/build/conf && \
git clone -b 1.46 git://git.openembedded.org/bitbake.git && \
git clone -b dunfell git://github.com/openembedded/meta-openembedded.git && \
git clone -b dunfell https://github.com/agherzan/meta-raspberrypi && \
git clone https://github.com/marcoguerri/meta-thirtyd
ARG home=/home/dev
RUN mkdir $home/openembedded/build
COPY --chown=dev:dev layer/local.conf $home/openembedded/build/conf/local.conf
COPY --chown=dev:dev layer/bblayers.conf $home/openembedded/build/conf/bblayers.conf
COPY --chown=dev:dev build_scripts/run_qemu.sh $home
COPY --chown=dev:dev build_scripts/build_image.sh $home
RUN chmod u+x $home/run_qemu.sh
RUN chmod u+x $home/build_image.sh