Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $script = <<SCRIPT
  2. #!/bin/bash
  3. set -eu
  4. sudo apt-get update -y
  5. sudo apt-get upgrade -y
  6. sudo apt-get install -y autoconf2.13 automake build-essential bsdmainutils faketime g++ g++-mingw-w64 git libqt4-dev libtool libz-dev mingw-w64 nsis pciutils pkg-config psmisc subversion unzip zip
  7. echo "ok"
  8. SCRIPT
  9. archs = ["amd64", "i386"]
  10. ubuntu_suites = ["precise", "quantal", "raring", "saucy", "trusty", "xenial", "bionic"]
  11. debian_suites = ["jessie", "stretch"]
  12. if ARGV[0] == "up" and ARGV.length == 1
  13. puts "Specify a name of the form 'suite-architecture'"
  14. puts " ubuntu suites: " + ubuntu_suites.join(', ')
  15. puts " debian suites (x86_64 only): " + debian_suites.join(', ')
  16. puts " architectures: " + archs.join(', ')
  17. Process.exit 1
  18. end
  19. # vagrant 1.9.1 (Ubuntu 17.10) compat
  20. if Vagrant::DEFAULT_SERVER_URL =~ /hashicorp/
  21. Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
  22. end
  23. Vagrant.configure("2") do |config|
  24. config.vm.provision "shell", inline: $script
  25. config.vm.network :forwarded_port, id: "ssh", guest: 22, host: 2223
  26. debian_suites.each do |suite|
  27. name = "#{suite}-amd64"
  28. box = "debian/#{suite}64"
  29. config.vm.define name do |config|
  30. config.vm.box = box
  31. config.vm.provider :virtualbox do |vb|
  32. vb.name = "Gitian-#{name}"
  33. end
  34. end
  35. end
  36. ubuntu_suites.each do |suite|
  37. archs.each do |arch|
  38. name = "#{suite}-#{arch}"
  39. config.vm.define name do |config|
  40. config.vm.box = name
  41. config.vm.box_url = "https://cloud-images.ubuntu.com/#{suite}/current/#{suite}-server-cloudimg-#{arch}-vagrant.box"
  42. config.vm.provider :virtualbox do |vb|
  43. vb.name = "Gitian-#{name}"
  44. end
  45. end
  46. end
  47. end
  48. config.vm.provider :virtualbox do |vb|
  49. vb.memory = 4096
  50. end
  51. end