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" + ] + } + ] +}