ansible playbook to set up a laminar container Ci build. moved to: https://git.sindominio.net/sindominio/ansible_laminar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible_laminar/base_image.run

18 lines
571 B

#!/bin/bash -x
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 debuerreotype-tar ${ROOTPATH} - | docker import -c 'CMD ["bash"]' - ${image}
docker tag ${image} {{ registry_domain }}/${image}
docker tag ${image} {{ registry }}/${image}
docker push {{ registry }}/${image}
sudo rm -rf ${ROOTPATH}
update_images ${image}