Skip to content

benjaminbergstein/cloud-development-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-development-environment

Simple to set up & configurable development machine in the digital ocean.

Contents

Usage

First-time set up

Prerequisites

  1. Install the Digital Ocean CLI.
  2. Generate an access token.
  3. Authenticate doctl with your access token.
  4. Make sure you have make and curl installed.
  5. Install jq.

First-time Set Up

Run:

make install

This will create the files at ~/.cloud-development-environment required for a basic development box.

Configuration

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

Launch

Create the droplet and SSH key for shell access:

make create

Run until droplet has an IP:

make update

This updates the local JSON info file about the droplet.

Set up the instance:

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.

SSH in to the instance:

make console

Teardown

Destroy the droplet and SSH key:

make destroy

About

Simple to set up & configurable development machine in the digital ocean.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published