2019-02-24 08:06:20 +00:00
|
|
|
FROM debian:latest
|
|
|
|
|
|
|
|
LABEL maintainer="tkl@blackfinn.de"
|
|
|
|
|
|
|
|
# Enable contrip section for "repo"
|
|
|
|
RUN sed -i -e 's/.main$/ main contrib/' /etc/apt/sources.list
|
|
|
|
|
|
|
|
# Install depencencies
|
|
|
|
RUN apt-get update && apt-get install -yq bash bc build-essential chrpath cpio \
|
|
|
|
debianutils default-jdk diffstat dos2unix g++-multilib gawk \
|
|
|
|
gcc-multilib git libc6-dev-i386 libsdl1.2-dev libssl-dev locales lzop \
|
|
|
|
p7zip-full python python3 python3-pexpect repo socat texinfo unzip \
|
|
|
|
wget vim-common xz-utils
|
|
|
|
|
|
|
|
# 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 \
|
2018-08-03 09:59:44 +00:00
|
|
|
libusb-1.0-0-dev:i386 libxml2:i386 jq
|
2017-12-06 16:06:59 +00:00
|
|
|
|
2019-02-24 08:06:20 +00:00
|
|
|
# Set UTF8 locale settings
|
|
|
|
RUN 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
|
2017-11-16 08:12:46 +00:00
|
|
|
|
2019-02-24 08:06:20 +00:00
|
|
|
ENV LANG en_US.UTF-8
|
2017-11-16 08:12:46 +00:00
|
|
|
|
2019-02-24 08:06:20 +00:00
|
|
|
RUN useradd -ms /bin/bash jenkins
|
|
|
|
RUN echo "jenkins:jenkins" | chpasswd
|
2017-11-16 08:12:46 +00:00
|
|
|
|
|
|
|
ADD init.sh /usr/local/bin/init.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/init.sh"]
|
2019-02-24 08:06:20 +00:00
|
|
|
|