OpenIndiana vagrant box builder
  • Shell 55%
  • HCL 34.4%
  • Makefile 10.6%
Find a file
Till Wegmüller dc66b4812b
Implement cloud images built by image-builder (#8)
* Remove test from release target as testing setup is broken and it hasn't changed in a long time

* Adding support for new image-builder

* Adding image-builder submodule

* fixing up metadata-agent and implementing workflow

Signed-off-by: Till Wegmueller <toasterson@gmail.com>

---------

Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2023-02-07 18:22:23 +01:00
.idea Update Box to newest Snapshot and create helper makefile 2021-07-21 10:42:43 -03:00
etc Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
image-builder@130133469c Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
lib Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
metadata-agent@f8aa5e9afe Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
sample_data Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
scripts Update Box to newest Snapshot and create helper makefile 2021-07-21 10:42:43 -03:00
templates Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
.gitignore Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
.gitmodules Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
build-cidata.sh Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
build.sh Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
cloud-image-build.sh Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00
hipster.pkr.hcl Update Box to newest Snapshot and create helper makefile 2021-07-21 10:42:43 -03:00
Makefile Remove test from release target as testing setup is broken and it hasn't changed in a long time 2023-02-05 18:43:15 +01:00
README.md Update Box to newest Snapshot and create helper makefile 2021-07-21 10:42:43 -03:00
Vagrantfile Implement cloud images built by image-builder (#8) 2023-02-07 18:22:23 +01:00

oi-packer

This repository holds tools necesearry to build OpenIndiana Vagrant boxes.

Requierements

To build OpenIndiana Vagrant boxes, we need the following tools:

Please note, that box building works only on platforms where packer runs.

Quickstart

  • Download Packer from the official download site. Select a version for your platform. We recommend to use the latest version.
  • Download Vagrant from the official download site. Select a version for your platform. We recommend to use the latest version.
  • Download VirtualBox from the official download site. We recommend to always use the latest VirtualBox.
  • Run the following commands:
git clone https://github.com/OpenIndiana/oi-packer.git && \
cd oi-packer && \
packer build -parallel-builds=1 hipster.pkr.hcl

Testing built boxes

After packer has finished building the box, there will be a Vagrant box file created, e.g. OI-hipster-20200504-virtualbox.box. To test it, run following commands:

vagrant box add --name hipster-test-virtualbox OI-hipster-20200504-virtualbox.box
vagrant init hipster-test-virtualbox
vagrant up
vagrant box add --name hipster-test-libvirt OI-hipster-20200504-libvirt.box
vagrant init hipster-test-libvirt
vagrant up --provider=libvirt

Release commands

If you are logged in to vagrant cloud use this commands to upload the built boxes.

REPO="openindiana/hipster"
VERSION="2020.05.04"
vagrant cloud publish -r $REPO $VERSION libvirt OI-hipster-20200504-libvirt.box
vagrant cloud publish -r $REPO $VERSION virtualbox OI-hipster-20200504-virtualbox.box

Future improvements:

  • Provide packer manifest and infrastructure for building VMWare images.
  • Provide packer manifest and infrastructure for building Amazon images.