8000 GitHub - cega/docker-ubuntu-debootstrap: 📦 minimal Ubuntu base image for Docker with https-support and curl.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cega/docker-ubuntu-debootstrap

 
 

Repository files navigation

Minimal Ubuntu images for Docker

Ever wondered why Ubuntu for Docker comes with systemd and tools for filesystem management? Yeah, me too. These are container images without that fuzz.

  • blitznote/debootstrap-amd64:16.10
  • blitznote/debootstrap-amd64:16.04
  • blitznote/debootstrap-amd64:15.10 [EOL]

If in doubt use 16.04.

size comparison: Ubuntu for Docker 120MB, ubuntu-debootstrap 87MB, blitznote/debootstrap-amd64 55MB

Docker imagehttps://github.com/Blitznote/docker-ubuntu-debootstrap

Features

  • small:
    • 63% the size of ubuntu-debootstrap (:16.04@898cb62b7368)
    • 45% the size of ubuntu (:16.04@44776f55294a)
  • comes with apt-transport-https
  • and latest curl
  • a bootstrap ca-certificates.crt
  • latest signify for Linux from Blitznote/signify
  • bzip2, jq, plzip, runit (for its chpst), unzip
  • with locale ISO.UTF-8 as default

Usage

This is meant as drop-in replacement for FROM ubuntu and FROM ubuntu-debootstrap.

You can use curl right away or start with apt-get -q update as usual. HTTPS support is already included in apt!

Find examples here:

Recommendations

Use lightweight chpst (31 kB) instead of gosu (2635 kB):

- gosu myuser syncthing "$@"
+ chpst -u myuser -- syncthing "$@"
- gosu nobody:root bash -c 'whoami && id'
+ chpst -u nobody:root -- bash -c 'whoami && id'

To account for differences between gpg v1 and gpg v2 I've created a script for fetching keys from keyservers:

/usr/bin/get-gpg-key 0xcbcb082a1bb943db 0xa6a19b38d3d831ef \
| apt-key add

Regenerate the Images

  1. Use the packages sources from /etc/apt/sources.list.
  2. Install the packages listed in build.manifest using apt.
  3. Remove any excess that cannot be used from within an container.

Caveats

  • Images for architecture amd64/x86_64 require instruction set SSE 4, which had been introduced in 2007. If you don't have a reasonably recent CPU you will eventually run into the illegal instruction error.
  • You need Linux 3.10.0 or later. Version 3.18.0 or later is strongly recommended.
  • Kernel support for Seccomp is strongly recommended. zgrep SECCOMP /proc/config.gz

About

📦 minimal Ubuntu base image for Docker with https-support and curl.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0