Setup Chartmuseum service on Cloud Run with Terraform.
This stack is perfectible (eg. : add CI/CD) and is only given to you as a PoC to build your perfect Cloud Run service with Terraform.
Don't forget to edit main.tf
to match your need :
cloud {
organization = "blackcreeper-network"
workspaces {
name = "blackcreeper-network_chartmuseum-cloud-run"
}
}
- IAM permissions for the service account using to run
terraform
- A Google Secret to store authentication infos for your Chartmuseum service
Example of a secret :
{"chartmuseum_user": "MYUSER", "chartmuseum_password":"MYPASSWORD"}
This secret will be then injected in your Cloud Run service through environment variables.
With Cloud Run, Docker images need to be hosted on Google Container Registry or Google Artifact Registry. So we need to tag an image from the bitnami one and push it to Google.
docker pull bitnami/chartmuseum:0.13.1
docker tag bitnami/chartmuseum:0.13.1 europe-west1-docker.pkg.dev/YOURPROJECT/docker-public/chartmuseum:0.13.1
docker push europe-west1-docker.pkg.dev/YOURPROJECT/docker-public/chartmuseum:0.13.1