Yocto build container: Use debian stretch-slim as base container
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
parent
19126870d1
commit
b55fa30150
31
Dockerfile
31
Dockerfile
@ -1,28 +1,31 @@
|
|||||||
FROM debian:latest
|
FROM debian:stretch-slim
|
||||||
|
|
||||||
LABEL maintainer="tkl@blackfinn.de"
|
LABEL maintainer="tkl@blackfinn.de"
|
||||||
|
|
||||||
# Enable contrip section for "repo"
|
# Enable contrip section for "repo"
|
||||||
RUN sed -i -e 's/.main$/ main contrib/' /etc/apt/sources.list
|
RUN sed -i -e 's/.main$/ main contrib/' /etc/apt/sources.list
|
||||||
|
|
||||||
# Install depencencies
|
# Install yocto depencencies
|
||||||
RUN apt-get update && apt-get install -yq bash bc build-essential chrpath cpio \
|
RUN apt-get update && apt-get install -yq gawk wget git-core diffstat unzip \
|
||||||
debianutils default-jdk diffstat dos2unix g++-multilib gawk \
|
texinfo gcc-multilib build-essential chrpath socat cpio python python3 \
|
||||||
gcc-multilib git libc6-dev-i386 libsdl1.2-dev libssl-dev locales lzop \
|
python3-pip python3-pexpect xz-utils debianutils iputils-ping
|
||||||
p7zip-full python python3 python3-pexpect repo socat texinfo unzip \
|
|
||||||
wget vim-common xz-utils
|
# Install jenkins dependencies
|
||||||
|
RUN mkdir -p /usr/share/man/man1/
|
||||||
|
RUN apt-get install -yq openjdk-8-jre-headless
|
||||||
|
|
||||||
|
# Install repo
|
||||||
|
RUN apt-get install -yq repo
|
||||||
|
|
||||||
# Reconfigure Dash
|
# Reconfigure Dash
|
||||||
RUN echo "dash dash/sh boolean false" | debconf-set-selections && dpkg-reconfigure dash
|
RUN echo "dash dash/sh boolean false" | debconf-set-selections && dpkg-reconfigure dash
|
||||||
|
|
||||||
# Add i386 arch
|
|
||||||
RUN dpkg --add-architecture i386 && apt-get update && apt-get -yq install \
|
|
||||||
libusb-1.0-0-dev:i386 libxml2:i386 jq
|
|
||||||
|
|
||||||
# Set UTF8 locale settings
|
# Set UTF8 locale settings
|
||||||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
RUN apt-get install -yq locales && \
|
||||||
dpkg-reconfigure --frontend=noninteractive locales && \
|
locale-gen en_US.UTF-8 && \
|
||||||
update-locale LANG=en_US.UTF-8
|
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
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user