Use debootstrap for base images

master
meskio 2 years ago
parent ab021d1d78
commit 99d117e147
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 6
      base_image.run

@ -4,11 +4,9 @@ ROOTPATH="rootfs"
PATH=$PATH:/usr/sbin
image="debian"
sudo debuerreotype-init ${ROOTPATH} stable `date +%FT%T`
sudo debuerreotype-minimizing-config ${ROOTPATH}
sudo debuerreotype-gen-sources-list ${ROOTPATH} stable 'http://deb.debian.org/debian' 'http://security.debian.org/debian-security'
sudo debootstrap --variant=minbase stable ${ROOTPATH}
sudo tar -c -C ${ROOTPATH} . | docker import -c 'CMD ["bash"]' - ${image}
sudo debuerreotype-tar ${ROOTPATH} - | docker import -c 'CMD ["bash"]' - ${image}
docker tag ${image} {{ registry_domain }}/${image}
docker tag ${image} {{ registry }}/${image}
docker push {{ registry }}/${image}

Loading…
Cancel
Save