[mapguide-commits] r8941 - in trunk/Tools/Vagrant: . packer packer/http

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat May 7 01:49:54 PDT 2016


Author: jng
Date: 2016-05-07 01:49:54 -0700 (Sat, 07 May 2016)
New Revision: 8941

Added:
   trunk/Tools/Vagrant/packer/http/ubuntu-14.04.4/
   trunk/Tools/Vagrant/packer/ubuntu14-amd64.json
   trunk/Tools/Vagrant/packer/ubuntu14-i386.json
Removed:
   trunk/Tools/Vagrant/packer/http/ubuntu-14.04/
Modified:
   trunk/Tools/Vagrant/make_boxes.bat
Log:
#2590: Add packer box templates for Ubuntu 14.04

Modified: trunk/Tools/Vagrant/make_boxes.bat
===================================================================
--- trunk/Tools/Vagrant/make_boxes.bat	2016-05-05 12:12:05 UTC (rev 8940)
+++ trunk/Tools/Vagrant/make_boxes.bat	2016-05-07 08:49:54 UTC (rev 8941)
@@ -1,35 +1,51 @@
 @echo off
-SET BUILD_UBUNTU_32=1
-SET BUILD_UBUNTU_64=1
-SET BUILD_CENTOS_32=1
-SET BUILD_CENTOS_64=1
+SET BUILD_UBUNTU14_32=1
+SET BUILD_UBUNTU14_64=1
+SET BUILD_UBUNTU12_32=1
+SET BUILD_UBUNTU12_64=1
+SET BUILD_CENTOS6_32=1
+SET BUILD_CENTOS6_64=1
 pushd packer
-if "%BUILD_CENTOS_64%" == "1" (
-echo [packer]: Build CentOS 64-bit base box
-packer build -force centos6-amd64.json | tee packer_centos64.log
+if "%BUILD_CENTOS6_64%" == "1" (
+echo [packer]: Build CentOS6 64-bit base box
+packer build -force centos6-amd64.json | tee packer_centos6_64.log
 echo [vagrant]: Export centos6-amd64 base box
 rem call vagrant package --base "centos6-amd64" --output centos6-amd64.box
 call vagrant box add "centos6-amd64" centos6-amd64.box --force
 )
-if "%BUILD_CENTOS_32%" == "1" (
-echo [packer]: Build CentOS 32-bit base box
-packer build -force centos6-i386.json | tee packer_centos32.log
+if "%BUILD_CENTOS6_32%" == "1" (
+echo [packer]: Build CentOS6 32-bit base box
+packer build -force centos6-i386.json | tee packer_centos6_32.log
 echo [vagrant]: Export centos6-i386 base box
 rem call vagrant package --base "centos6-i386" --output centos6-i386.box
 call vagrant box add "centos6-i386" centos6-i386.box --force
 )
-if "%BUILD_UBUNTU_64%" == "1" (
-echo [packer]: Build Ubuntu 64-bit base box
-packer build -force ubuntu12-amd64.json | tee packer_ubuntu64.log
+if "%BUILD_UBUNTU12_64%" == "1" (
+echo [packer]: Build Ubuntu12 64-bit base box
+packer build -force ubuntu12-amd64.json | tee packer_ubuntu12_64.log
 echo [vagrant]: Export ubuntu12-amd64 base box
 rem call vagrant package --base "ubuntu12-amd64" --output ubuntu12-amd64.box
 call vagrant box add "ubuntu12-amd64" ubuntu12-amd64.box --force
 )
-if "%BUILD_UBUNTU_32%" == "1" (
-echo [packer]: Build Ubuntu 32-bit base box
-packer build -force ubuntu12-i386.json | tee packer_ubuntu32.log
+if "%BUILD_UBUNTU12_32%" == "1" (
+echo [packer]: Build Ubuntu12 32-bit base box
+packer build -force ubuntu12-i386.json | tee packer_ubuntu12_32.log
 echo [vagrant]: Export ubuntu12-i386 base box
 rem call vagrant package --base "ubuntu12-i386" --output ubuntu12-i386.box
 call vagrant box add "ubuntu12-i386" ubuntu12-i386.box --force
 )
+if "%BUILD_UBUNTU14_64%" == "1" (
+echo [packer]: Build Ubuntu14 64-bit base box
+packer build -force ubuntu14-amd64.json | tee packer_ubuntu14_64.log
+echo [vagrant]: Export ubuntu14-amd64 base box
+rem call vagrant package --base "ubuntu14-amd64" --output ubuntu14-amd64.box
+call vagrant box add "ubuntu14-amd64" ubuntu14-amd64.box --force
+)
+if "%BUILD_UBUNTU14_32%" == "1" (
+echo [packer]: Build Ubuntu14 32-bit base box
+packer build -force ubuntu14-i386.json | tee packer_ubuntu14_32.log
+echo [vagrant]: Export ubuntu14-i386 base box
+rem call vagrant package --base "ubuntu14-i386" --output ubuntu14-i386.box
+call vagrant box add "ubuntu14-i386" ubuntu14-i386.box --force
+)
 popd
\ No newline at end of file

Added: trunk/Tools/Vagrant/packer/ubuntu14-amd64.json
===================================================================
--- trunk/Tools/Vagrant/packer/ubuntu14-amd64.json	                        (rev 0)
+++ trunk/Tools/Vagrant/packer/ubuntu14-amd64.json	2016-05-07 08:49:54 UTC (rev 8941)
@@ -0,0 +1,59 @@
+{
+  "builders": [{
+    "type": "virtualbox-iso",
+    "guest_os_type": "Ubuntu_64",
+    "iso_url": "http://mirror.internode.on.net.au/pub/ubuntu/releases/14.04/ubuntu-14.04.4-server-amd64.iso",
+    "iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
+    "iso_checksum_type": "md5",
+    "output_directory": "output-ubuntu-14.04.4-amd64",
+    "vm_name": "packer-ubuntu-14.04.4-amd64",
+    "disk_size": "{{user `disk_size`}}",
+    "headless": "{{user `headless`}}",
+    "http_directory": "http",
+    "boot_wait": "5s",
+    "boot_command": [
+      "<esc><wait>",
+      "<esc><wait>",
+      "<enter><wait>",
+      "/install/vmlinuz ",
+      "initrd=/install/initrd.gz ",
+      "biosdevname=0 ",
+      "auto-install/enable=true ",
+      "debconf/priority=critical ",
+      "preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu-14.04.4/preseed.cfg ",
+      "<enter>"
+    ],
+    "ssh_wait_timeout": "60m",
+    "ssh_username": "vagrant",
+    "ssh_password": "vagrant",
+    "shutdown_command": "sudo poweroff",
+    "vboxmanage": [
+      ["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
+      ["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
+    ]
+  }],
+  "provisioners": [{
+    "type": "shell",
+    "scripts": [
+      "scripts/ubuntu/base.sh",
+      "scripts/ubuntu/virtualbox.sh",
+      "scripts/common/vagrant.sh",
+      "scripts/common/sshd.sh",
+      "scripts/mapguide/ubuntu64.sh",
+      "scripts/ubuntu/cleanup.sh",
+      "scripts/common/minimize.sh"
+    ]
+  }],
+  "post-processors": [{
+    "type": "vagrant",
+    "compression_level": "{{user `compression_level`}}",
+    "output": "ubuntu14-amd64.box"
+  }],
+  "variables": {
+    "compression_level": 1,
+    "cpus": "2",
+    "disk_size": 25000,
+    "headless": false,
+    "memory": "1024"
+  }
+}

Added: trunk/Tools/Vagrant/packer/ubuntu14-i386.json
===================================================================
--- trunk/Tools/Vagrant/packer/ubuntu14-i386.json	                        (rev 0)
+++ trunk/Tools/Vagrant/packer/ubuntu14-i386.json	2016-05-07 08:49:54 UTC (rev 8941)
@@ -0,0 +1,59 @@
+{
+  "builders": [{
+    "type": "virtualbox-iso",
+    "guest_os_type": "Ubuntu",
+    "iso_url": "http://mirror.internode.on.net.au/pub/ubuntu/releases/14.04/ubuntu-14.04.4-server-i386.iso",
+    "iso_checksum": "29c5c14450976fb1941e147382a559f5",
+    "iso_checksum_type": "md5",
+    "output_directory": "output-ubuntu-14.04.4-i386",
+    "vm_name": "packer-ubuntu-14.04.4-i386",
+    "disk_size": "{{user `disk_size`}}",
+    "headless": "{{user `headless`}}",
+    "http_directory": "http",
+    "boot_wait": "5s",
+    "boot_command": [
+      "<esc><wait>",
+      "<esc><wait>",
+      "<enter><wait>",
+      "/install/vmlinuz ",
+      "initrd=/install/initrd.gz ",
+      "biosdevname=0 ",
+      "auto-install/enable=true ",
+      "debconf/priority=critical ",
+      "preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu-14.04.4/preseed.cfg ",
+      "<enter>"
+    ],
+    "ssh_wait_timeout": "60m",
+    "ssh_username": "vagrant",
+    "ssh_password": "vagrant",
+    "shutdown_command": "sudo poweroff",
+    "vboxmanage": [
+      ["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
+      ["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
+    ]
+  }],
+  "provisioners": [{
+    "type": "shell",
+    "scripts": [
+      "scripts/ubuntu/base.sh",
+      "scripts/ubuntu/virtualbox.sh",
+      "scripts/common/vagrant.sh",
+      "scripts/common/sshd.sh",
+      "scripts/mapguide/ubuntu32.sh",
+      "scripts/ubuntu/cleanup.sh",
+      "scripts/common/minimize.sh"
+    ]
+  }],
+  "post-processors": [{
+    "type": "vagrant",
+    "compression_level": "{{user `compression_level`}}",
+    "output": "ubuntu14-i386.box"
+  }],
+  "variables": {
+    "compression_level": 1,
+    "cpus": "2",
+    "disk_size": 25000,
+    "headless": false,
+    "memory": "1024"
+  }
+}



More information about the mapguide-commits mailing list