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.

build.json 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "variables":{
  3. "user":"root",
  4. "password":"laser",
  5. "disk_size":"5G",
  6. "domain":""
  7. },
  8. "builders":[
  9. {
  10. "type":"lxc",
  11. "name":"teamlaser-lj-lxc",
  12. "config_file":"files/lxc/config",
  13. "template_name":"debian",
  14. "template_environment_vars":[
  15. "SUITE=buster"
  16. ],
  17. "output_directory":"output-lxc"
  18. },
  19. {
  20. "headless":false,
  21. "name":"teamlaser-lj",
  22. "type":"qemu",
  23. "format":"qcow2",
  24. "accelerator":"kvm",
  25. "disk_size":"{{ user `disk_size` }}",
  26. "output_directory":"output",
  27. "boot_key_interval":"20ms",
  28. "iso_url":"http://cdimage.debian.org/debian-cd/10.5.0/amd64/iso-cd/debian-10.5.0-amd64-netinst.iso",
  29. "iso_checksum":"sha256:93863e17ac24eeaa347dfb91dddac654f214c189e0379d7c28664a306e0301e7",
  30. "http_directory":"http",
  31. "ssh_username":"{{ user `user` }}",
  32. "ssh_password":"{{ user `password` }}",
  33. "shutdown_command":"echo '{{ user `password` }}' | sudo -S shutdown -h now",
  34. "ssh_wait_timeout":"60m",
  35. "qemuargs":[
  36. [
  37. "-m",
  38. "2048M"
  39. ]
  40. ],
  41. "boot_wait":"2s",
  42. "boot_command":[
  43. "<esc><wait><wait>",
  44. "install ",
  45. "auto=true ",
  46. "priority=critical ",
  47. "interface=auto ",
  48. "url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
  49. "<enter>"
  50. ]
  51. },
  52. {
  53. "headless":false,
  54. "name":"teamlaser-lj-xfce",
  55. "type":"qemu",
  56. "format":"qcow2",
  57. "accelerator":"kvm",
  58. "disk_size":"{{ user `disk_size` }}",
  59. "output_directory":"output-xfce",
  60. "boot_key_interval":"20ms",
  61. "iso_url":"http://cdimage.debian.org/debian-cd/10.5.0/amd64/iso-cd/debian-10.5.0-amd64-xfce-CD-1.iso",
  62. "iso_checksum":"sha256:14ca00bafcaf124ef2cab9da2f51d75044232ba9630a067d8664fabcb5e26ec2",
  63. "http_directory":"http",
  64. "ssh_username":"{{ user `user` }}",
  65. "ssh_password":"{{ user `password` }}",
  66. "shutdown_command":"echo '{{ user `password` }}' | sudo -S shutdown -h now",
  67. "ssh_wait_timeout":"60m",
  68. "qemuargs":[
  69. [
  70. "-m",
  71. "2048M"
  72. ]
  73. ],
  74. "boot_wait":"2s",
  75. "boot_command":[
  76. "<esc><wait><wait>",
  77. "install ",
  78. "auto=true ",
  79. "priority=critical ",
  80. "interface=auto ",
  81. "url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
  82. "<enter>"
  83. ]
  84. }
  85. ],
  86. "provisioners":[
  87. {
  88. "type":"shell",
  89. "inline":[
  90. "sleep 3",
  91. "apt update",
  92. "apt install -y --no-install-recommends cmake git libasound2-dev libjack-dev libsdl1.2-dev network-manager nginx portaudio19-dev python3-dev python3-pip python3-rtmidi redis-server screen ssh ssl-cert ",
  93. "rm -f /etc/nginx/sites-enabled/default",
  94. "pip3 install setuptools",
  95. "pip3 install DMXEnttecPro mido numpy pysimpledmx redis scipy ",
  96. "git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && ./setup.py install ",
  97. "cd /tmp && git clone https://github.com/Ableton/link.git && cd link && git submodule update --init --recursive && mkdir build && cd build && cmake .. && cmake --build . ",
  98. "cd /tmp/ && git clone --recursive https://github.com/gonzaloflirt/link-python.git && cd link-python && mkdir build && cd build && cmake .. && cmake --build . ",
  99. "cd /opt/ && git clone https://git.interhacker.space/teamlaser/LJ "
  100. ]
  101. },
  102. {
  103. "type":"file",
  104. "source":"files/nginx/laser.conf",
  105. "destination":"/etc/nginx/sites-enabled/laser.conf"
  106. },
  107. {
  108. "type":"file",
  109. "source":"files/root/.bashrc",
  110. "destination":"/root/.bashrc"
  111. }
  112. ]
  113. }