Old snapshot of blitznote/debootstrap-amd64
450
Ever wondered why Ubuntu for Docker comes with systemd and tools for filesystem management? Yeah, me too. These are container images without that fuzz.
If in doubt use 16.04.
← https://github.com/Blitznote/debase
This baseimages are available as ACI for rkt:
rkt trust --prefix blitznote.com
rkt image fetch blitznote.com/ubuntu:16.04
rkt image fetch blitznote.com/ubuntu:17.04
rkt image fetch blitznote.com/ubuntu:17.10
Above images are 13 MiB when downloaded, and extracted about the same size as images for Docker.
Support for dgr's/conti's scripting is provided.
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:
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
These images come with latest versions of libc and Perl, no matter which Ubuntu version you have downloaded. Although this decision benefits security, you can run into packages which won't install due to dependencies. In almost all cases it's either related to Perl or broken in vanilla Ubuntu, too.
To downgrade Perl to use packages from Ubuntu only:
. /etc/os-release
# 16.04 - xenial
apt-get -t ${UBUNTU_CODENAME} --allow-downgrades -y install perl-base=5.22*
If you intend to use this Docker image for building packages, you will need to uncompress the shipped version files first:
find /var/lib/dpkg/info -type f -name '*.lz' \
| xargs --max-args=1 --max-procs=$(nproc) --no-run-if-empty \
plzip --keep -d
/etc/apt/sources.list.build.manifest using apt.I have published a script which automates that. You can find it on Github, as answer to question/issue 2.
Leveraging git's "textconv" you can track changes to the archive files. This merely changes how diffs are displayed. Run:
git config --global diff.tar.textconv "tar -tavf"
git config --global diff.tar.cachetextconv true
git config --global diff.debian-tarball.textconv "tar --to-stdout -x ./var/lib/dpkg/available -f"
git config --global diff.debian-tarball.cachetextconv true
You can use screen and tmux, for example for long-running processes on Container Linux distributions.
Run something that does not return first. Then, utilize script with docker exec -ti:
# on the host:
docker run -d --name "myenv" blitznote/debase:16.04 /bin/bash
# Now use this "permanent environment" like this:
docker exec -ti myenv script -q -c "/bin/bash" /dev/null
# Voila! screen/tmux will work as usual, including redraws on resized terminals.
screen -m -- rtorrent
screen -wipe
screen -r
…
illegal instruction error.
Another symptom of missing instruction sets is message Sub-process… exited unexpectedly with its
accompanying logline trap invalid opcode (run dmesg or check your syslog daemon for details).15h and Intel's Ivy Bridge will not work.zgrep SECCOMP /proc/config.gzdocker pull huggla/debootstrap-amd64:latest