diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-05-20 10:07:45 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-05-20 10:07:45 +0300 |
commit | 7fb86cdc0aa3d07124e4c10d8a9a1255d65bf9d8 (patch) | |
tree | 804b5136134bf386ef75893a492389fbfcba96ab /stretch-armhf | |
parent | 805e88281f741110483ebd89d46a1691b99e3bf0 (diff) |
stretch: add initial Debian Stretch images based on Jessie configurations
Change-Id: I7eec42c203f7ed6969b0e93c622894aa562a56d7
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'stretch-armhf')
-rw-r--r-- | stretch-armhf/Dockerfile | 60 | ||||
-rwxr-xr-x | stretch-armhf/build.sh | 22 |
2 files changed, 82 insertions, 0 deletions
diff --git a/stretch-armhf/Dockerfile b/stretch-armhf/Dockerfile new file mode 100644 index 00000000..6fa5e2c6 --- /dev/null +++ b/stretch-armhf/Dockerfile @@ -0,0 +1,60 @@ +FROM quay.io/fathi_boudra/debian:stretch-armhf + +COPY *.list *.key /etc/apt/sources.list.d/ + +RUN apt-key add /etc/apt/sources.list.d/*.key \ + && apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y devscripts \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + abootimg \ + acpica-tools \ + android-tools-fsutils \ + autoconf \ + automake \ + bc \ + bison \ + build-essential \ + ccache \ + curl \ + debhelper \ + debian-archive-keyring \ + debian-keyring \ + device-tree-compiler \ + doxygen \ + fakeroot \ + flex \ + gcc \ + gdisk \ + git \ + kernel-wedge \ + kpartx \ + lava-tool \ + libtool \ + linaro-image-tools \ + lsb-release \ + openjdk-8-jdk \ + openssh-server \ + python-pycurl \ + qemu-user-static \ + sudo \ + time \ + u-boot-tools \ + uuid-dev \ + wget \ + zip \ + zsync \ + && apt-get clean \ + && rm -rf \ + /etc/apt/sources.list.d/*.key \ + /var/lib/apt/lists/* \ + /tmp/* \ + /var/tmp/* + +RUN useradd -m buildslave \ + && echo 'buildslave ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins \ + && chmod 440 /etc/sudoers.d/jenkins \ + && mkdir -p /var/run/sshd + +EXPOSE 22 +CMD ["/usr/sbin/sshd", "-D"] diff --git a/stretch-armhf/build.sh b/stretch-armhf/build.sh new file mode 100755 index 00000000..39a649a9 --- /dev/null +++ b/stretch-armhf/build.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +trap cleanup_exit INT TERM EXIT + +cleanup_exit() +{ + rm -f *.list *.key +} + +export LANG=C + +DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-') + +cp -a ../linaro-*.list ../linaro-*.key . +sed -e "s|@DISTRIBUTION@|${DISTRIBUTION}|" -i *.list + +# fixup - get rid of PPA usage +rm -f linaro-*ppa.* + +docker build --tag=linaro/$(basename ${PWD}) . |