Home

Awesome

Chemical-Analytics-Platform Virtual Machine

Build Status DOI

Scripts to create a Vagrant box using packer and ansible.

For available software inside Virtual machine see https://github.com/NLeSC/Chemical-Analytics-Platform/wiki

Usage

Requirements:

Start virtual machine with

vagrant init nlesc/chemical-analytics-platform
vagrant up

Build

Requirements:

packer build -force packer.json

The build will produce 2 files:

Test

Add box to Vagrant with

vagrant box remove --force --all nlesc/chemical-analytics-platform
vagrant box add --name nlesc/chemical-analytics-platform packer_virtualbox-iso_virtualbox.box

Then use steps described at Usage chapter in a new directory.

Push

Requirements:

Publish box on https://atlas.hashicorp.com/nlesc/boxes/chemical-analytics-platform using the following steps:

  1. Create a new version
  2. Create a new provider
  3. Choose virtualbox as provider
  4. Choose Upload
  5. Press Continue to upload
  6. Upload the packer_virtualbox-iso_virtualbox.box file generated by vagrant package
  7. Edit version
  8. Press Release version

Extending

The ova file produced during build can be used as as starting point in a another packer image build project using the 'virtualbox-ovf' packer builder.

To give another project also self upgrade capabilities add it's upgrade script to /etc/vagrant_upgrade.d directory.