2017-06-28 18:05:06 +02:00
|
|
|
# This image builds Yocto 2.1 and 2.2 jobs using the kas tool
|
2017-06-14 13:36:37 +02:00
|
|
|
|
2017-06-22 19:15:53 +02:00
|
|
|
FROM debian:jessie-slim
|
2017-06-14 13:36:37 +02:00
|
|
|
|
|
|
|
ENV LOCALE=en_US.UTF-8
|
2017-06-20 07:54:03 +02:00
|
|
|
RUN apt-get update && \
|
2017-06-23 16:31:00 +02:00
|
|
|
apt-get install --no-install-recommends -y locales && \
|
2017-06-28 18:05:04 +02:00
|
|
|
sed -i -e "s/# $LOCALE/$LOCALE/" /etc/locale.gen && \
|
|
|
|
ln -s /etc/locale.alias /usr/share/locale/locale.alias && \
|
2017-06-20 07:54:03 +02:00
|
|
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
2017-06-23 16:31:00 +02:00
|
|
|
apt-get install --no-install-recommends -y \
|
|
|
|
gawk wget git-core diffstat unzip file \
|
2017-06-14 13:36:37 +02:00
|
|
|
texinfo gcc-multilib build-essential \
|
2017-06-23 16:31:00 +02:00
|
|
|
chrpath socat cpio python python3 rsync \
|
2017-06-19 18:37:25 +02:00
|
|
|
tar bzip2 curl dosfstools mtools parted \
|
|
|
|
syslinux tree python3-pip bc python3-yaml \
|
2017-07-24 15:54:24 +02:00
|
|
|
lsb-release python3-setuptools ssh-client \
|
2018-01-05 16:00:32 +01:00
|
|
|
vim less mercurial && \
|
2017-06-20 07:54:03 +02:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2017-06-19 09:28:35 +02:00
|
|
|
RUN wget -nv -O /usr/bin/gosu "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64" && \
|
|
|
|
chmod +x /usr/bin/gosu
|
2017-06-20 07:54:03 +02:00
|
|
|
|
2017-07-19 08:51:20 +02:00
|
|
|
RUN wget -nv -O /usr/bin/oe-git-proxy "http://git.yoctoproject.org/cgit/cgit.cgi/poky/plain/scripts/oe-git-proxy" && \
|
|
|
|
chmod +x /usr/bin/oe-git-proxy
|
|
|
|
ENV GIT_PROXY_COMMAND="oe-git-proxy"
|
|
|
|
ENV NO_PROXY="*"
|
|
|
|
|
2017-06-14 13:36:37 +02:00
|
|
|
COPY . /kas
|
2017-07-19 08:51:21 +02:00
|
|
|
RUN pip3 --proxy=$https_proxy install /kas
|
2017-06-14 13:36:37 +02:00
|
|
|
|
2017-06-28 18:05:05 +02:00
|
|
|
ENV LANG=$LOCALE
|
|
|
|
|
2017-06-23 16:30:59 +02:00
|
|
|
ENTRYPOINT ["/kas/docker-entrypoint"]
|