Public Repository

Last pushed: 2 years ago
Short Description
debootstrap squeeze of 32bit, lts support
Full Description

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
Docker Pull Command
Owner
emfox

Comments (0)