golang.org/x/build@v0.0.0-20240506185731-218518f32b70/doc/deployment.md (about) 1 # Deploying services 2 3 Services in x/build that are deployed to our GKE cluster all follow the same 4 workflow. 5 In the directories containing their `main` package should also be a Makefile 6 that follows the process described below. 7 8 ### First-time setup 9 10 Install the `docker`, `kubectl`, and `gcloud` utilities. 11 12 Verify that `docker run hello-world` works without `sudo`. (You may need to run 13 `sudo adduser $USER docker`, then either log out and back in or run `newgrp 14 docker`.) 15 16 Then run: 17 18 ```sh 19 $ gcloud auth configure-docker 20 ``` 21 22 Install the App Engine Go SDK: [instructions](https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu) 23 24 ### Prod 25 26 First, configure `gcloud`: 27 28 ```sh 29 $ gcloud config set project symbolic-datum-552 30 $ gcloud container clusters get-credentials --zone=us-central1 services 31 ``` 32 33 Then to deploy, run: 34 35 ```sh 36 $ make deploy-prod 37 ```