For usage instructions checkout the official Kubos docs
For testing the changes in the kubos-dev box, modify the Vagrantfile and provisioning scripts in the kubos-dev/ directory as needed.
You can rebuild the image to test locally by running the follow commands in the kubos-dev/ folder:
$ vagrant destroy
Followed by:
$ vagrant up
After building a new vagrant, run the following command to get inside of the newly created box:
$ vagrant ssh
You should now have an ssh session in the vagrant box. It is recommended to run through the CI tests, documentation generation, and basic hardware interaction to verify that the box is working correctly.
The scripts for building and packaging a Vagrant box for release are found in the builder/ directory.
The main.py script will be used when creating a Vagrant release.
It requires a version and an action.
Building a release based off local changes:
$ ./main.py -al [version]
Building a release off of master:
$ ./main.py -a [version]
Newly created releases will be found in the following location:
builder/[version]/kubos-dev/package.box
The process for uploading a new Vagrant release is currently a manual one.
- Navigate to https://app.vagrantup.com/kubos/kubos-dev in your browser of choice.
- Click
New Versionat the top. - Enter a version number and click
Create Version. - Click
Add a provideron the newly created version's page. - Type
virtualboxinto theProvidertext field. - Make sure
Upload to Vagrant Cloudis selected next toFile Hostingand clickContinue to Upload. - Under
Add Provider File, clickChoose Fileand select thepackage.boxfile found in thebuilderfolder. - Wait for the upload to complete. It will say
Upload Completenext toStatus. - Click the
kubos-devlink at the top of the page. You should see a list of available versions. - The newly created version will be there with
unreleasednext to it. Click theReleasebutton. - This will take you to the
Release Box Versionpage. ClickRelease versionto make the release available.