Packer.io is great. For your pleasure, since it seems difficult for me to find a simple updated ubuntu dev box, heres a Digital Ocean packer config for the latest and greatest Ubuntu Python and Java Dev box. Youll need a variables file with your API token from Digitalocean and an image is built. You can add other builders too. A Vagrant, an AWS box, a docker image… it gets really fancy with packer.io
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | { "variables": { "dokey": "" }, "builders": [{ "type": "digitalocean", "api_token": "{{user `dokey`}}", "region": "nyc2", "image": "ubuntu-16-04-x64", "size": "4gb", "ssh_username": "root" }], "provisioners": [ {"type": "shell", "inline": ["apt-get -y update", "apt-get -y upgrade", "apt-get -y install git linux-image-extra-$(uname -r) linux-image-extra-virtual build-essential openjdk-8-jdk openjdk-8-jre unzip wget curl libssl-dev libffi-dev python3-dev python3-pip python3-venv"]} ] } |