config 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # vim: filetype=yaml sw=2
  2. filename: 'container-image_[% c("var/container/suite") %]-[% c("var/container/arch") %].tar.gz'
  3. pkg_type: build
  4. var:
  5. ubuntu_version: 16.04.3
  6. container:
  7. use_container: 1
  8. # We need CAP_SYS_ADMIN for debootstrap to work
  9. CAP_SYS_ADMIN: 1
  10. pre: |
  11. #!/bin/sh
  12. set -e
  13. apt-get update -y
  14. apt-get install -y debian-archive-keyring ubuntu-keyring debootstrap
  15. debootstrap --arch=[% c("var/container/arch") %] [% c("var/container/debootstrap_opt") %] [% c("var/container/suite") %] base-image [% c("var/container/debootstrap_mirror") %]
  16. tar -C ./base-image -czf [% dest_dir %]/[% c("filename") %] .
  17. targets:
  18. wheezy-amd64:
  19. var:
  20. container:
  21. suite: wheezy
  22. arch: amd64
  23. wheezy-i386:
  24. var:
  25. container:
  26. suite: wheezy
  27. arch: i386
  28. jessie-amd64:
  29. var:
  30. container:
  31. suite: jessie
  32. arch: amd64
  33. jessie-i386:
  34. var:
  35. container:
  36. suite: jessie
  37. arch: i386
  38. buster-amd64:
  39. var:
  40. container:
  41. suite: buster
  42. arch: amd64
  43. input_files:
  44. - URL: 'http://cdimage.ubuntu.com/ubuntu-base/releases/[% c("var/ubuntu_version") %]/release/ubuntu-base-[% c("var/ubuntu_version") %]-base-amd64.tar.gz'
  45. filename: 'container-image_ubuntu-base-[% c("var/ubuntu_version") %]-base-amd64.tar.gz'
  46. sha256sum: 353b01ac60c43574c4977b1a9b7fe09a43298cb572de1a2090a8f09c5133b4d2