Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GCP] Make the GCP conformance deployment config more friendly #347

Merged
merged 10 commits into from
Dec 2, 2024

Conversation

AlCutter
Copy link
Collaborator

This PR makes the terra{grunt,form} config for deploying the GCP conformance environment more friendly for humans to use when exploring Tessera.

The main changes are:

  • Service accounts are now optional
  • Docker image to use for CloudRun can be specified
  • Docs updated to guide humans along the path to deploy

deployment/live/gcp/conformance/README.md Outdated Show resolved Hide resolved
deployment/live/gcp/conformance/README.md Outdated Show resolved Hide resolved
deployment/live/gcp/conformance/README.md Show resolved Hide resolved
Comment on lines 50 to 63
```bash
$ gcloud artifacts repositories create ${DOCKER_REPO_NAME} \
--repository-format=docker \
--location=us-central1 \
--description="My Tessera docker repo" \
--immutable-tags

$ gcloud auth configure-docker us-central1-docker.pkg.dev

$ docker build . -f ./cmd/conformance/gcp/Dockerfile --tag us-central1-docker.pkg.dev/${YOUR_GCP_PROJECT}/${DOCKER_REPO_NAME}/conformance:latest

$ docker push us-central1-docker.pkg.dev/${YOUR_GCP_PROJECT}/${DOCKER_REPO_NAME}/conformance:latest

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the leading $ for easy copy & paste.

deployment/live/gcp/conformance/README.md Outdated Show resolved Hide resolved
Comment on lines 10 to 14
inputs = merge(
include.root.locals,
{
server_docker_image = "us-central1-docker.pkg.dev/trillian-tessera/docker-prod/conformance-gcp:latest"
}
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the merge() still needed when server_docker_image is removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not as is, but I left that there in case someone wanted to make overrides specifically for CI.

deployment/modules/gcp/conformance/main.tf Outdated Show resolved Hide resolved
@AlCutter AlCutter merged commit 345e339 into transparency-dev:main Dec 2, 2024
15 checks passed
@AlCutter AlCutter deleted the gcp_nicely branch December 2, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants