-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
94 lines (82 loc) · 1.77 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
FROM fedora:28
# Metadata
LABEL mantainer="Gius. Camerlingo <[email protected]>"
LABEL version="1.0"
LABEL description="Docker container for yocto."
# Update & system packages
RUN dnf -y update && \
dnf -y install \
gawk \
make \
wget \
tar \
bzip2 \
gzip \
python \
python3 \
unzip \
perl \
patch \
diffutils \
diffstat \
git \
subversion \
cpp \
gcc \
gcc-c++ \
glibc-devel \
texinfo \
chrpath \
ccache \
perl-Data-Dumper \
perl-Text-ParseWords \
perl-Thread-Queue \
perl-bignum \
rpcgen \
socat \
findutils \
which \
cpio \
file \
xz \
screen \
tmux \
sudo \
fluxbox \
hostname \
procps \
tigervnc-server \
kmod \
vim \
zsh \
iproute \
minicom
RUN dnf -y clean all
# Docker image name
ENV NAME=poky
# Timezone
ENV TZ="Europe/Paris"
# Vnc
RUN cp -af /etc/skel/ /etc/vncskel/ && \
echo "export DISPLAY=1" >>/etc/vncskel/.bashrc && \
mkdir /etc/vncskel/.vnc && \
echo "" | vncpasswd -f > /etc/vncskel/.vnc/passwd && \
chmod 600 /etc/vncskel/.vnc/passwd
# Term
ENV TERM=xterm
# Config
COPY build-dumb-init.sh /
RUN bash /build-dumb-init.sh
RUN rm /build-dumb-init.sh
# User
RUN echo "yocto ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN useradd -ms /bin/zsh yocto
USER yocto
ENV HOME=/home/yocto
WORKDIR $HOME
# Custom shell
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Poky v2.5 (sumo)
RUN git clone -b sumo git://git.yoctoproject.org/poky
# Entrypoint
CMD /bin/zsh