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-amd64 | |
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-amd64')
-rw-r--r-- | stretch-amd64/Dockerfile | 63 | ||||
-rwxr-xr-x | stretch-amd64/build.sh | 22 |
2 files changed, 85 insertions, 0 deletions
diff --git a/stretch-amd64/Dockerfile b/stretch-amd64/Dockerfile new file mode 100644 index 0000000..eeb685f --- /dev/null +++ b/stretch-amd64/Dockerfile @@ -0,0 +1,63 @@ +FROM debian:stretch + +COPY *.list *.key /etc/apt/sources.list.d/ + +RUN dpkg --add-architecture i386 \ + && 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 \ + libstdc++6:i386 \ + 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 \ + zlib1g:i386 \ + 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-amd64/build.sh b/stretch-amd64/build.sh new file mode 100755 index 0000000..39a649a --- /dev/null +++ b/stretch-amd64/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}) . |