forked from gmacario/easy-build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
59 lines (46 loc) · 1.79 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
# ===========================================================================================
# Dockerfile for building the Yocto GENIVI Baseline
#
# References:
# http://projects.genivi.org/GENIVI_Baselines/meta-ivi/home
# ===========================================================================================
#FROM ubuntu
FROM gmacario/easy-build
MAINTAINER Gianpaolo Macario, [email protected]
# Make sure the package repository is up to date
RUN apt-get update
RUN apt-get -y upgrade
# Install packages we cannot leave without...
RUN apt-get install -y git tig
RUN apt-get install -y mc
RUN apt-get install -y openssh-server
# Make sure the directory exists, otherwise sshd will not start
RUN mkdir -p /var/run/sshd
RUN apt-get install -y screen
# Install the following utilities (required by poky)
RUN apt-get install -y make gcc g++ diffstat texinfo gawk chrpath wget
RUN apt-get install -y libsdl1.2-dev
# Install the following utilities (required by create_vdi.sh)
RUN apt-get install -y curl
# NOTE: Uncomment if user "build" is not already created inside the base image
## Create non-root user that will perform the build of the images
#RUN useradd --shell /bin/bash build
#RUN mkdir -p /home/build
#RUN chown -R build /home/build
# Clone meta-ivi and poky repos
RUN su -c "mkdir -p ~/genivi-baseline" build
RUN su -c "cd ~/genivi-baseline \
&& git clone git://git.yoctoproject.org/poky" build
RUN su -c "cd ~/genivi-baseline \
&& git clone git://git.yoctoproject.org/meta-ivi" build
RUN su -c "cd ~/genivi-baseline \
&& git clone git://git.openembedded.org/meta-openembedded" build
RUN mkdir -p /home/build/shared
COPY configure_build.sh /home/build/
RUN chown -R build.build /home/build
#RUN cd /home/build
# Define container entry point
ENTRYPOINT ["/bin/bash"]
# Expose sshd port
EXPOSE 22
# EOF