Skip to content

Instantly share code, notes, and snippets.

@socheatsok78
Created May 30, 2021 08:59
Show Gist options
  • Save socheatsok78/204f5f9df177a7be8333e5018a3ba8c9 to your computer and use it in GitHub Desktop.
Save socheatsok78/204f5f9df177a7be8333e5018a3ba8c9 to your computer and use it in GitHub Desktop.
Deploy Hashicorp Waypoint Droplet on Digital Ocean

Hashicorp Waypoint Droplet on Digital Ocean:

  1. In the Digital Ocean portal, go to the project view.
  2. Click New Droplet.
  3. Click Create Droplet.
  4. Click the Marketplace tab.
  5. Click Docker.
  6. Choose a plan. Make sure your Droplet has the minimum hardware requirements for Docker.
  7. Choose any options for backups, block storage, and datacenter region.
  8. Optional: In the Select additional options section, you can check the User data box and enter a cloud-config file in the text box that appears. The cloud-config file is used to provide a script to be run on the first boot. An example is below.
  9. Choose an SSH key that you have access to, or generate a new SSH key.
  10. Choose your project.
  11. Click Create.

Below is an example cloud-config file that you can use to initialize the Droplet with user data, such as deploying Waypoint:

If you don't have an Digital Ocean account, click here to create an account you will get $100 for you to spend on your first server.

#!/bin/bash
echo " ==> Add Hashicorp’s official GPG key"
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
echo " ==> Set up the Docker repository"
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
echo " ==> Install Waypoint"
sudo apt-get update && sudo apt-get install waypoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment