diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-04-28 10:52:21 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-04-28 10:52:21 +0300 |
commit | 9681d284b41f11a8c40ae2093a7b759a09ecb972 (patch) | |
tree | 139a234d4fc71ff0e7ef1f7b1af2edae8a56df2a | |
parent | 2174ed51b85657d3bad95b0b44ee812ced7dca6a (diff) |
xenial-arm*: initial Dockerfile based on wily Dockerfile
Change-Id: I9170df662de2197602ed6e9192e4d25d095788ce
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rw-r--r-- | xenial-arm64/Dockerfile | 61 | ||||
-rwxr-xr-x | xenial-arm64/build.sh | 22 | ||||
-rw-r--r-- | xenial-armhf/Dockerfile | 61 | ||||
-rwxr-xr-x | xenial-armhf/build.sh | 22 |
4 files changed, 166 insertions, 0 deletions
diff --git a/xenial-arm64/Dockerfile b/xenial-arm64/Dockerfile new file mode 100644 index 0000000..b389d2b --- /dev/null +++ b/xenial-arm64/Dockerfile @@ -0,0 +1,61 @@ +FROM quay.io/fathi_boudra/ubuntu:xenial-arm64 + +COPY *.list *.key /etc/apt/sources.list.d/ + +RUN echo 'deb http://ports.ubuntu.com/ubuntu-ports xenial main universe' > /etc/apt/sources.list \ + && for key in $(ls /etc/apt/sources.list.d/*.key); do apt-key add ${key}; done \ + && 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 -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 + +EXPOSE 22 +CMD ["/usr/sbin/sshd", "-D"] diff --git a/xenial-arm64/build.sh b/xenial-arm64/build.sh new file mode 100755 index 0000000..39a649a --- /dev/null +++ b/xenial-arm64/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}) . diff --git a/xenial-armhf/Dockerfile b/xenial-armhf/Dockerfile new file mode 100644 index 0000000..4486d73 --- /dev/null +++ b/xenial-armhf/Dockerfile @@ -0,0 +1,61 @@ +FROM quay.io/fathi_boudra/ubuntu:xenial-armhf + +COPY *.list *.key /etc/apt/sources.list.d/ + +RUN echo 'deb http://ports.ubuntu.com/ubuntu-ports xenial main universe' > /etc/apt/sources.list \ + && for key in $(ls /etc/apt/sources.list.d/*.key); do apt-key add ${key}; done \ + && 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 -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 + +EXPOSE 22 +CMD ["/usr/sbin/sshd", "-D"] diff --git a/xenial-armhf/build.sh b/xenial-armhf/build.sh new file mode 100755 index 0000000..39a649a --- /dev/null +++ b/xenial-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}) . |