packer template to build FreeBSD (with zfsroot) images
vagrant images are available at uchida/freebsd.
vagrant init uchida/freebsd; vagrant up
To build images, simply run:
$ git clone https://github.com/uchida/packer-freebsd
$ cd packer-freebsd
$ packer build template.json
If you want to build only virtualbox, vmware or qemu.
$ packer build -only=virtualbox-iso template.json
$ packer build -only=vmware-iso template.json
$ packer build -only=qemu template.json
Vagrant images at Atlas are released by Circle CI. setup instructions are the following:
- Sign up
- Get API token
- Create new build configuration at Atlas and generate token.
- Create project at Circle CI
- Add Atlas environment variables to Circle CI project:
$ ATLAS_TOKEN={{ your atlas api token here }}
$ CIRCLE_USERNAME={{ your circle ci username here }}
$ CIRCLE_PROJECT={{ your circle ci project here }}
$ CIRCLE_TOKEN={{ your circle ci token here }}
$ CIRCLE_ENVVARENDPOINT="https://circleci.com/api/v1/project/$CIRCLE_USERNAME/$CIRCLE_PROJECT/envvar?circle-token=$CIRCLE_TOKEN"
$ json="{\"name\":\"ATLAS_TOKEN\",\"value\":\"$ATLAS_TOKEN\"}"
$ curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d "$json" "$CIRCLE_ENVVARENDPOINT"
- Edit circle.yml
[] (http://creativecommons.org/publicdomain/zero/1.0/deed)
dedicated to public domain, no rights reserved.