debootstrap squeeze of 32bit, lts support
152
Some good old app would like to stay with old 32bit libs. Squeeze has got LTS support, so a good version.
instruction to build this image (I forgot the source of this code...sorry)
### settings
arch=i386
suite=squeeze
chroot_dir='/var/chroot/squeeze'
apt_mirror='http://http.debian.net/debian'
docker_image='emfox/debian:squeeze-32bit'
### make sure that the required tools are installed
apt-get install -y debootstrap dchroot
### install a minbase system with debootstrap
export DEBIAN_FRONTEND=noninteractive
debootstrap --arch $arch $suite $chroot_dir $apt_mirror
### update the list of package sources
cat <<EOF > $chroot_dir/etc/apt/sources.list
deb $apt_mirror squeeze main contrib non-free
deb $apt_mirror squeeze-lts main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
EOF
### cleanup
chroot $chroot_dir apt-get autoclean
chroot $chroot_dir apt-get clean
chroot $chroot_dir apt-get autoremove
### create a tar archive from the chroot directory
tar cfz debian.tgz -C $chroot_dir .
### import this tar archive into a docker image:
cat debian.tgz | docker import - $docker_image
# ### push image to Docker Hub
# docker push $docker_image
# ### cleanup
# rm debian.tgz
# rm -rf $chroot_dir
Content type
Image
Digest
sha256:1ee9f854f…
Size
69.6 MB
Last updated
over 10 years ago
docker pull emfox/debian:squeeze-32bit