This repository has been archived by the owner on May 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a19334c
commit cbaf5d0
Showing
7 changed files
with
112 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@ECHO OFF | ||
SET ISO_MD5_CHECKSUM=0c13ace5c4b2d18aca1337c2bddde568 | ||
SET VM_DESCRIPTION=A simplified Linux distribution built from containers, for containers | ||
SET VM_VERSION=1.0.1 | ||
packer build -var "vm_description=%VM_DESCRIPTION%" -var "vm_version=%VM_VERSION%" -var "iso_md5_checksum=%ISO_MD5_CHECKSUM%" "packer_rancheros.alpha.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@ECHO OFF | ||
SET ISO_MD5_CHECKSUM=b0e3e198a12a2ae8efe89f5167655879 | ||
SET ISO_MD5_CHECKSUM=0c13ace5c4b2d18aca1337c2bddde568 | ||
SET VM_DESCRIPTION=A simplified Linux distribution built from containers, for containers | ||
SET VM_VERSION=1.0.0 | ||
SET VM_VERSION=1.0.1 | ||
packer build -force -var "vm_description=%VM_DESCRIPTION%" -var "vm_version=%VM_VERSION%" -var "iso_md5_checksum=%ISO_MD5_CHECKSUM%" "packer_rancheros.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"variables": { | ||
"iso_md5_checksum": "0c13ace5c4b2d18aca1337c2bddde568", | ||
"version_prerelease_suffix": ".alpha1", | ||
"vm_description": "A simplified Linux distribution built from containers, for containers", | ||
"vm_version": "1.0.1" | ||
}, | ||
"builders": [ | ||
{ | ||
"type": "virtualbox-iso", | ||
"guest_os_type": "Linux26_64", | ||
"iso_url": "https://releases.rancher.com/os/v{{ user `vm_version` }}/rancheros.iso", | ||
"iso_checksum": "{{user `iso_md5_checksum` }}", | ||
"iso_checksum_type": "md5", | ||
"guest_additions_mode": "disable", | ||
"ssh_private_key_file": "./keys/vagrant", | ||
"ssh_username": "rancher", | ||
"ssh_wait_timeout": "360s", | ||
"hard_drive_interface": "sata", | ||
"hard_drive_nonrotational": true, | ||
"iso_interface": "sata", | ||
"vm_name": "rancherOS", | ||
"disk_size": "24000", | ||
"boot_wait": "30s", | ||
"boot_command": [ | ||
"echo \"#cloud-config\" >> cloud-config.yml<enter>", | ||
"echo \"ssh_authorized_keys:\" >> cloud-config.yml<enter>", | ||
"echo \" - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key\" >> cloud-config.yml<enter>", | ||
"sudo ros install -c cloud-config.yml -d /dev/sda<enter>", | ||
"y<enter>", | ||
"<wait5>", | ||
"y<enter>", | ||
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10>" | ||
], | ||
"shutdown_command": "sudo shutdown -h now", | ||
"export_opts": [ | ||
"--manifest", | ||
"--vsys", "0", | ||
"--description", "{{user `vm_description`}}", | ||
"--version", "{{user `vm_version`}}{{user `version_prerelease_suffix` }}" | ||
], | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--memory", | ||
"1024" | ||
], | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--cpus", | ||
"1" | ||
] | ||
] | ||
} | ||
], | ||
"post-processors": [ | ||
[ | ||
{ | ||
"type": "vagrant", | ||
"compression_level": 9, | ||
"keep_input_artifact": false, | ||
"output":"RancherOS_{{user `vm_version`}}.box", | ||
"vagrantfile_template": "./Vagrantfile" | ||
}, | ||
{ | ||
"type": "atlas", | ||
"only": ["virtualbox-iso"], | ||
"artifact": "MatthewHartstonge/RancherOS", | ||
"artifact_type": "vagrant.box", | ||
"metadata": { | ||
"provider": "virtualbox", | ||
"version": "{{user `vm_version`}}{{user `version_prerelease_suffix`}}" | ||
} | ||
} | ||
] | ||
], | ||
"push": { | ||
"name": "MatthewHartstonge/RancherOS" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters