packer/

directory
v0.333.2-candidate Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2016 License: Apache-2.0

README

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.

DockerHub

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.

Directories

Path Synopsis
rootfs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL