Platform as a Service (PaaS)
This article describes how to bring up servers within Digital Ocean a cloud-based virtual private server (VPS) to host a server (Jenkins).
I want you to feel confident that you’ve mastered this skill. That’s why this takes a hands-on approach where you type in commands and we explain the responses and possible troubleshooting. This is a “deep dive” because all details are presented.
Like a good music DJ, I’ve carefully arranged the presentation of concepts into a sequence for easy learning, so you don’t have to spend as much time as me making sense of the flood of material around this subject.
Sentences that begin with PROTIP are a high point of this website to point out wisdom and advice from experience. NOTE point out observations that many miss. Search for them if you only want “TL;DR” (Too Long Didn’t Read) highlights.
Stuck? Contact me and I or one of my friends will help you.
Sign up for an account at
Provide a credit card or Paypal account enough for a $5 droplet.
Define SSH Keys
Open a Terminal shell window to a folder where you generate SSH key pair:
ssh-keygen -t rsa
Save the file as “do_s” or another file of your choosing. Unlike other programs, we won’t be using the default file names on your machine.
Copy the public key file into your clipboard:
pbcopy < ~/.ssh/do_s.pub
Alternately, use a text editor to open the file to copy, such as:
Switch back to the Create Droplet webpage to click “New SSH Key”.
Click in the box and press command+V to paste.
Specify a server name.
PROTIP: Define (in writing) a server naming convention for use by your team. Use of sequential numbers would require a tracking system.
Select the location, etc.
Select Droplet image.
QUESTION: Select my own.
Copy the hostname to your clipboard and paste to your notes.
Click the green Create button.
Copy the IP Address to your clipboard and paste to your notes. For example:
Click More to Access Console.
NOTE: Each Droplet spun up is a new VPS for your personal use.
The first time you connect, you’ll see a message such as:
The authenticity of host '18.104.22.168 (22.214.171.124)' can't be established. ECDSA key fingerprint is SHA256:sdfsdfsdfu5+Xsaf4COHb0UaRTxeoycUh4tLj1kwNQ. Are you sure you want to continue connecting (yes/no)?
Type yes because this is expected behavior.
Enter your password.
Click API at the top menu.
Register the app.
Auto Deploy to Digital Ocean
- We should then be able to trigger a manual deployment into production by supplying a valid RC release from the list of RC tagged releases.
More on DevOps
This is one of a series on DevOps:
- ci-cd (Continuous Integration and Continuous Delivery)
- Git and GitHub vs File Archival
- Git Commands and Statuses
- Git Commit, Tag, Push
- Git Utilities
- Data Security GitHub
- GitHub API
- Choices for DevOps Technologies
- Java DevOps Workflow
- AWS DevOps (CodeCommit, CodePipeline, CodeDeploy)
- Digital Ocean
- Cloud regions
- AWS Virtual Private Cloud
- Azure Cloud Onramp
- Azure Cloud
- Packer automation to build Vagrant images
Terraform multi-cloud provisioning automation
- Powershell Ecosystem
- Powershell on MacOS
- Jenkins Server Setup
- Jenkins Plug-ins
- Jenkins Freestyle jobs
- Dockerize apps
- Docker Setup
- API Management Microsoft
- Scenarios for load