Garden-Linux Packer
Garden-Linux Packer is currently used to build Docker images / Vagrant boxes
suitable for Garden-Linux development & testing.
Pre-requisites for Mac
- docker-machine version 0.5.1 and higher
- Packer version v0.8.0 from homebrew (
brew install packer) or
the site
Building
For some reason the default temp dir for packer has issues with the boot2docker
vm. In order to build images you will need to export the TMPDIR. For
instance, if you are using direnv add this to a .envrc
in the packer directory:
export TMPDIR=~/.packer_tmp
mkdir -p $TMPDIR
Build everything
Run make ubuntu. This will commit a docker image to your Docker server named
garden-ci-ubuntu:packer.
Releasing
Update garden-ci/version.json with the desired version number.
Ensure that you have the correct environment varibles set.
export GARDEN_PACKER_DOCKER_USERNAME=<Docker user name>
export GARDEN_PACKER_DOCKER_EMAIL=<Docker email>
export GARDEN_PACKER_DOCKER_PASSWORD=<Docker password>
Then run make release-docker. This will tag and upload the image to Docker
Hub.