From 077c6a1b89f84c469d9a52d94df3e594205b3d00 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 14 Jan 2015 02:57:37 -0500 Subject: [PATCH] Add a packer.json file to automate building Digital Ocean Images from debian packages --- contrib/packer.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 contrib/packer.json diff --git a/contrib/packer.json b/contrib/packer.json new file mode 100644 index 000000000..f293592ee --- /dev/null +++ b/contrib/packer.json @@ -0,0 +1,32 @@ +{ + "builders": [ + { + "type": "digitalocean", + "region": "nyc3", + "image": "ubuntu-14-04-x64" + } + ], + "provisioners": [ + { + "type": "file", + "source": "deb.mk", + "destination": "/tmp/Makefile" + }, + { + "type": "shell", + "inline": [ + "echo '--> Waiting 30 seconds for core services to be available'", + "sleep 30", + + "echo '--> Updating apt repositories'", + "sudo apt-get update > /dev/null", + + "echo '--> Installing make requirement'", + "sudo apt-get -qq -y install build-essential", + + "cd /tmp && make install-from-deb", + "rm /root/.ssh/authorized_keys" + ] + } + ] +}