Last active
February 2, 2016 15:44
-
-
Save ironpinguin/15b0533a7da0b8dc1195 to your computer and use it in GitHub Desktop.
build lxc boxes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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