diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-11-11 20:55:47 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-11-11 20:55:47 +0200 |
commit | 2bcaf1254e5159a5dcc40b09eeb1dcf7d765f7b3 (patch) | |
tree | 6cfbe53155f6c8bff33ff51c2f4a75b5399dddb4 /jessie-armhf |
Initial commit of Dockerfile configurations used by Linaro CI
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'jessie-armhf')
-rw-r--r-- | jessie-armhf/Dockerfile | 58 | ||||
-rwxr-xr-x | jessie-armhf/build.sh | 19 |
2 files changed, 77 insertions, 0 deletions
diff --git a/jessie-armhf/Dockerfile b/jessie-armhf/Dockerfile new file mode 100644 index 0000000..7c96121 --- /dev/null +++ b/jessie-armhf/Dockerfile @@ -0,0 +1,58 @@ +FROM quay.io/fathi_boudra/debian:jessie-armhf + +COPY *.list *.key /etc/apt/sources.list.d/ + +RUN apt-key add /etc/apt/sources.list.d/*.key \ + && apt-get update \ + && apt-get dist-upgrade \ + && 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-7-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 -p '$6$7tSX2YU5Q$ydZwAuWtNPPBb1Fv/tzy3eFeEP/ThDBUjV/4vHVx6bVyfYMX6Q9PYhdV/CyJg7uthSIqIyzlNF65NVB1xwGtt0/' buildslave \ + && echo 'buildslave ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins \ + && chmod 440 /etc/sudoers.d/jenkins \ + && mkdir -p /var/run/sshd \ + && /usr/sbin/sshd diff --git a/jessie-armhf/build.sh b/jessie-armhf/build.sh new file mode 100755 index 0000000..c39e2f5 --- /dev/null +++ b/jessie-armhf/build.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +trap cleanup_exit INT TERM EXIT + +cleanup_exit() +{ + rm -f linaro.list linarorepo.key +} + +export LANG=C + +DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-') + +cp -a ../${DISTRIBUTION}.list linaro.list +cp -a ../linarorepo.key . + +docker build --tag=linaro/$(basename ${PWD}) . |