Simple to set up & configurable development machine in the digital ocean.
- Install the Digital Ocean CLI.
- Generate an access token.
- Authenticate
doctl
with your access token. - Make sure you have
make
andcurl
installed. - Install
jq
.
Run:
make install
This will create the files at ~/.cloud-development-environment
required for a basic development box.
For Github access, copy your SSH private key to ~/.cloud-development-environment/files/id_rsa
Add repositories you want cloned:
echo 'git@github.com:your/repo.git' >> ~/.cloud-development-environment/files/repos.txt
Add other files or dotfiles you want uploaded:
cp ~/.your-dotfiles ~/.cloud-development-environment/files
cp ../any/other/files ~/.cloud-development-environment/files
make create
make update
This updates the local JSON info file about the droplet.
make setup
Droplets can take a minute to be SSH-ready. You can check by running make console
. This instance can only be set up once the droplet is available for
SSH.
make console
make destroy