2019-03-01 06:36:02 +00:00
|
|
|
FROM debian:stretch-slim
|
2019-02-24 08:06:20 +00:00
|
|
|
|
|
|
|
LABEL maintainer="tkl@blackfinn.de"
|
|
|
|
|
|
|
|
# Enable contrip section for "repo"
|
|
|
|
RUN sed -i -e 's/.main$/ main contrib/' /etc/apt/sources.list
|
|
|
|
|
2019-03-01 06:36:02 +00:00
|
|
|
# Install yocto depencencies
|
|
|
|
RUN apt-get update && apt-get install -yq 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
|
|
|
|
|
|
|
|
# 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
|
2019-02-24 08:06:20 +00:00
|
|
|
|
|
|
|
# Reconfigure Dash
|
|
|
|
RUN echo "dash dash/sh boolean false" | debconf-set-selections && dpkg-reconfigure dash
|
|
|
|
|
|
|
|
# Set UTF8 locale settings
|
2019-03-01 06:36:02 +00:00
|
|
|
RUN apt-get install -yq locales && \
|
|
|
|
locale-gen 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
|
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
|
|
|
|