This repo has a sample implementation for ephemeral environments using the demo microservices application sock-shop.
For the sample implementation, the front-end
repo has been forked at https://github.com/OpenGov/front-end.
The main implementation and configuration is maintained in this repo (OpenGov/ephemeral.run).
The sample minimum setup for the EKS Cluster is in ephemeral.run/platform-setup.
The configuration for the ephemeral environments is described in ephemeral.run/ephemeral-env.
Follow the steps below to run the sample:
- Fork the front-end repo
- Fork the ephemeral.run repo
- Create and configure the EKS Cluster on your AWS Account. Refer to ephemeral.run/platform-setup
- Set the following secrets on your fork:
DOCKERHUB_REPOSITORY
DOCKERHUB_USERNAME
DOCKERHUB_PASSWORD
GIT_HUB_ACCESS_TOKEN
AWS_CLUSTER_NAME
IAM_CLUSTER_USER
IAM_CLUSTER_PASSWORD
- Make some change to the
front-end
codebase in a branch - Create a PR to the main branch of your fork.
- A build will be triggered through Github Actions. The build will push the image to your Docker Hub repository.
- Once the build is completed, add a
ephemeral-deploy
label to the PR.