Public Repository

Last pushed: 2 years ago
Short Description
ubuntu trusty/14.04 image (minbase) for armhf architecture. This image is suitable to build docker from source Tested on my ODROID XU3 unit
Full Description

ubuntu trusty/14.04 image for armhf architecture.

Tested on my ODROID XU3 unit

This image is suitable to build docker from source


How to reproduce that image:

  1. debootstrap to produce the image:

    sudo debootstrap --verbose --variant=minbase --include=iproute,iputils-ping --arch armhf trusty ./ubuntu http://ports.ubuntu.com/ubuntu-ports/

  2. import tarball

    sudo tar -C ubuntu -c . | sudo docker import - ubuntu

  3. tweak systemd/upstart services

    sudo docker run ubuntu echo '#!/bin/sh' > /usr/sbin/policy-rc.d
    && echo 'exit 101' >> /usr/sbin/policy-rc.d
    && chmod +x /usr/sbin/policy-rc.d
    && dpkg-divert --local --rename --add /sbin/initctl
    && cp -a /usr/sbin/policy-rc.d /sbin/initctl
    && sed -i 's/^exit./exit 0/' /sbin/initctl
    && echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
    && echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/
    .deb /var/cache/apt/archives/partial/.deb /var/cache/apt/.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean
    && echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/.deb /var/cache/apt/archives/partial/.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean
    && echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean
    && echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages
    && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes

  4. tag the new image

    sudo docker commit <id> ubuntu:14.04

Docker Pull Command
Owner
hominidae

Comments (1)
kermit
3 years ago

Tested it on a CuBox-I and it works. Mentioned here.