Owner Drivetrain team

Clone this repo:
  1. 740ed55 Allow to use EU-based jenkins builder for offline building by Vladimir Khlyunev · 1 year, 9 months ago master
  2. f3a4d33 Fix fresh jenkins node qemu error by Vladimir Khlyunev · 1 year, 10 months ago
  3. 101e65e Pass gerrit http login/pass to build by Vladimir Khlyunev · 2 years ago
  4. 86ff1ce Replace DNS server to CZ by Vladimir Khlyunev · 2 years, 10 months ago
  5. 469f6dc Drop MCP_VERSION from trymcp docker images tag by Vladimir Khlyunev · 3 years, 2 months ago

Packer templates

Packer templates are used to:

  • automagically create OS images with upgraded packages
  • provision user defined changes to created image
  • remove user defined elements from image
  • build single version of OS image for multiple hypervisors

Features

Operating Systems

  • Ubuntu 14.04 (trusty)
  • Ubuntu 16.04 (xenial)
  • Debian 8 (jessie)

Providers

  • qemu
  • docker
  • virtualbox
  • vagrant/libvirt
  • vagrant/virtualbox
  • digitalocean

Usage

Install Packer

PACKER_URL="https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip"
PACKER_ZIP=$(basename ${PACKER_URL})
PACKER_ZIP_MD5="bc37abe5e183a11bd8c1b2efc385059b"

mkdir -p ~/bin/packer
cd ~/bin/packer
export PATH="${PATH}:~/bin/packer"

wget -O ${PACKER_ZIP} ${PACKER_URL}
echo "${PACKER_ZIP_MD5}  ${PACKER_ZIP}" >> md5sum
md5sum -c --status md5sum

unzip ${PACKER_ZIP}

Image build

Enter build directory by selecting OS type and version. You should see file template.json.

Start building some images:

packer build -only=virtualbox-iso template.json

Development

Directory http/ contains OS installer config files (preseed/kickstart/..)

Directory scripts/ contains set of scripts for provision after image build.

Notes

  • some builders cannot work at the same time (by design)