diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-04-28 01:29:02 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-04-28 01:29:02 +0300 |
commit | 2174ed51b85657d3bad95b0b44ee812ced7dca6a (patch) | |
tree | 8e57929ecbd9a2ba0f2c5d26ad708ecb7e97ae71 /xenial-amd64 | |
parent | 50680a5b1226d72ff7bb510cd0800314ebfabf68 (diff) |
xenial-amd64: initial Dockerfile based on wily Dockerfile
* add fixup to get rid of PPA, use repo.linaro.org only
* get rid of specific acpica-tools package from Debian
the package from xenial is recent enough
* repo.linaro.org is empty atm, hence linaro-image-tools is too old
Change-Id: Id9ff17f91a7a27caee9eb8898acf6d152402a07a
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'xenial-amd64')
-rw-r--r-- | xenial-amd64/Dockerfile | 70 | ||||
-rwxr-xr-x | xenial-amd64/build.sh | 22 |
2 files changed, 92 insertions, 0 deletions
diff --git a/xenial-amd64/Dockerfile b/xenial-amd64/Dockerfile new file mode 100644 index 00000000..9a2ae57e --- /dev/null +++ b/xenial-amd64/Dockerfile @@ -0,0 +1,70 @@ +FROM ubuntu:xenial + +COPY *.list *.key /etc/apt/sources.list.d/ + +RUN dpkg --add-architecture i386 \ + && 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 \ + gcc-aarch64-linux-gnu \ + gcc-arm-linux-gnueabihf \ + 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 \ + && wget -q \ + http://de.archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_3.81-8.2ubuntu3_amd64.deb \ + && dpkg -i --force-all *.deb \ + && apt-mark hold make \ + && apt-get clean \ + && rm -rf \ + /etc/apt/sources.list.d/*.key \ + /var/lib/apt/lists/* \ + /tmp/* \ + /var/tmp/* \ + *.deb + +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-amd64/build.sh b/xenial-amd64/build.sh new file mode 100755 index 00000000..39a649a9 --- /dev/null +++ b/xenial-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}) . |