Automating the Setup of a Disposable Remote Development and Testing Environment for Rancher
an invention by jluo
an invention by jluo
Updated
6 days
ago.
No love.
1 follower.
Description
During Rancher development, I’ve encountered a few challenges:
- Access to an x86 machine is required to build Rancher images from a development branch.
- A private registry is needed to push images and facilitate seamless image pulls during testing, avoiding DockerHub's rate limits.
Currently, this process involves manually creating a VM in Digital Ocean, installing the required tools, and adding DNS records to the domain. To streamline this, I propose creating tools to automate the setup process.
Goals
Develop a tool that can:
- Set up a private Docker registry with a randomly generated address under a provided domain.
- Configure the registry to allow public image pulls while restricting image pushes to the originating VM.
- Request Let's Encrypt certificates to resolve Docker's "certificate signed by unknown authority" error.
- Clone a specified GitHub repository into the VM.
- Install all necessary tools for building Rancher images.
Resources
- Terraform: https://developer.hashicorp.com/terraform/install
- Corral: https://github.com/rancherlabs/corral