-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
74 lines (65 loc) · 1.56 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
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:22.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git \
curl \
expect \
python3 \
python3-distutils \
gnupg \
bzip2 \
chrpath \
cpio \
cpp \
diffstat \
file \
g++ \
gawk \
gcc \
lz4 \
make \
binutils \
zstd \
wget \
locales \
sudo \
gcc-multilib \
build-essential \
socat \
python3-pip \
python3-pexpect \
xz-utils \
debianutils \
iputils-ping \
python3-git \
python3-jinja2 \
libegl1-mesa \
libsdl1.2-dev \
xterm \
python3-subunit \
mesa-common-dev \
libarchive-zip-perl \
&& pip3 install pylint \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN useradd -ms /bin/bash yocto
RUN echo 'yocto ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER yocto
WORKDIR /prep-build
COPY --chown=yocto:yocto setup-yocto fs-release-manifest.xml ./
RUN chown -R yocto:yocto setup-yocto fs-release-manifest.xml
RUN echo -e "\n\ny\n" | ./setup-yocto disco-ii-yocto
WORKDIR /prep-build/disco-ii-yocto/yocto-fus
RUN echo -e '#!/usr/bin/expect\n\
set env(DISTRO) "fus-imx-wayland"\n\
set env(MACHINE) "fsimx8mp"\n\
spawn /bin/bash -c "source /prep-build/disco-ii-yocto/yocto-fus/fus-setup-release.sh"\n\
expect "Do you accept the EULA you just read? (y/n)"\n\
send "y\r"\n\
expect eof' > setup.exp
RUN chmod +x setup.exp && ./setup.exp
CMD chmod +x /custom/start.sh && /custom/start.sh