Skip to content

uchida/packer-freebsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-freebsd

Version License CircleCI

packer template to build FreeBSD (with zfsroot) images

vagrant images are available at uchida/freebsd.

vagrant init uchida/freebsd; vagrant up

Building Images

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

Release setup

Vagrant images at Atlas are released by Circle CI. setup instructions are the following:

  1. Sign up
  1. Get API token
  1. Create new build configuration at Atlas and generate token.
  2. Create project at Circle CI
  3. 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"
  1. Edit circle.yml

License

[CC0] (http://creativecommons.org/publicdomain/zero/1.0/deed)

dedicated to public domain, no rights reserved.