1.2 KiB
1.2 KiB
Cycle OS build scripts
Cycle's OS is based on NixOS, a linux distribution with a purely functional package manager.
These scripts build .box images that can be used by vagrant, and ISO images that can be installed on bare metal.
See CycleSDK for the complete development environment (which makes use of the images generated here).
Building the images
First install packer and virtualbox
Then:
packer build template.json
The .box image is now ready to go. Install it into Vagrant via:
vagrant box add cycle64 cycle64-virtualbox.box
Updating the public box image
s3put
is handy command line wrapper for copying files to Amazon S3, it's part of the boto library.
Install boto:
pip install boto
Push the .box image to S3 via s3put
s3put -a $AWS_ID -s $AWS_KEY -b oxdi -g public-read --prefix `pwd` cycle64-virtualbox.box
The box will then be available at http://amazonaws.com/oxdi/cycle64-virtualbox.box