Skip to content

Instantly share code, notes, and snippets.

@ironpinguin
Last active February 2, 2016 15:44
Show Gist options
  • Save ironpinguin/15b0533a7da0b8dc1195 to your computer and use it in GitHub Desktop.
Save ironpinguin/15b0533a7da0b8dc1195 to your computer and use it in GitHub Desktop.
build lxc boxes
#!/bin/bash
sudo aptitude install -y bzr mercurial git lxc
sudo add-apt-repository -y ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install -y ubuntu-make
echo -n "$HOME/.local/share/umake/go/go-lang" | umake go
source $HOME/.profile
echo 'GOPATH=$HOME/go' >> $HOME/.bashrc
echo 'export GOPATH' >> $HOME/.bashrc
echo 'PATH=$PATH:$HOME/go/bin' >> $HOME/.bashrc
echo 'export PATH' >> $HOME/.bashrc
source $HOME/.bashrc
go get -u github.com/mitchellh/gox
cd go/src/github.com/mitchellh
git clone -b add_lxc_to_post-processor_vagrant https://github.com/mayflower/packer.git
cd packer
make updatedeps
make
go get -u github.com/mitchellh/gox
go get -u github.com/mitchellh/go-fs
go get -u github.com/mitchellh/multistep
go get -u github.com/ustream/packer-builder-lxc
cd $GOPATH/src/github.com/ustream/packer-builder-lxc
gox -os=linux -arch=amd64 -output=pkg/{{.OS}}_{{.Arch}}/packer-builder-lxc
cd
git clone https://github.com/mayflower/baseboxes.git
cd baseboxes
make only-lxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment