-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
74 lines (58 loc) · 2.42 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
# This dockerfile uses the ubuntu image
# VERSION 0 - EDITION 1
# Author: Yen-Chin, Lee <[email protected]>
# Command format: Instruction [arguments / command] ..
FROM ubuntu:14.04
MAINTAINER Yen-Chin, Lee, [email protected]
# Add 32bit package in package list
RUN dpkg --add-architecture i386
# Update package infos first
RUN apt-get update -y
## Install requred packages:
# http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html
# Essentials
RUN apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping vim bc g++-multilib bash realpath
# Graphical and Eclipse Plug-In Extras
RUN apt-get install -y libsdl1.2-dev xterm
# Documentation
RUN apt-get install -y make xsltproc docbook-utils fop dblatex xmlto
# OpenEmbedded Self-Test
RUN apt-get install -y python-git
# Extra package for build with NXP's images
RUN apt-get install -y \
sed cvs subversion coreutils texi2html \
python-pysqlite2 help2man gcc g++ \
desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial \
autoconf automake groff curl lzop asciidoc u-boot-tools busybox
# Extra package for Xilinx PetaLinux
RUN apt-get install -y xvfb libtool libncurses5-dev libssl-dev zlib1g-dev:i386 tftpd
# Install repo tool for some bsp case, like NXP's yocto
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo
RUN chmod a+x /usr/bin/repo
# Install Java
#RUN \
# echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | debconf-set-selections && \
# apt-get install -y software-properties-common && \
# add-apt-repository -y ppa:linuxuprising/java && \
# apt-get update && \
# apt-get install -y oracle-java11-installer-local && \
# rm -rf /var/lib/apt/lists/* && \
# rm -rf /var/cache/oracle-jdk11-installer-local
# Set the locale, else yocto will complain
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# make /bin/sh symlink to bash instead of dash
# Xilinx's petalinux need this
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# default workdir is /yocto
WORKDIR /yocto
# Add entry point, we use entrypoint.sh to mapping host user to
# container
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]