Skip to content

Commit

Permalink
upgrade downstream-builder to go16 and update docs (GoogleCloudPlatfo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottSuarez authored May 5, 2021
1 parent 296f03c commit b3e507f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .ci/containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ The images are named with the languages they contain and the images are versione
If there are multiple images with the same language version but different libraries (gems), a `v#` is appended to differentiate. eg: `1.11.5-2.6.0-2.7-v6`

## Updating a docker image
The Dockerfile should be updated, then the image rebuilt and pushed to the container registry stored at the `magic-modules` GCP project. To update any of the images:
The Dockerfile should be updated, then the image rebuilt and pushed to the container registry stored at the `graphite-docker-images` GCP project. To update any of the images:

1. Make changes to the Dockerfile
2. Configure docker to use gcloud auth:
```gcloud auth configure-docker```
3. Build the image: `docker build . --tag gcr.io/magic-modules/go-ruby-python`
3. Build the image: `docker build . --tag gcr.io/graphite-docker-images/go-ruby-python`
4. Find the new image's id: `docker images`
5. Add the appropriate tag `docker tag ac37c0af8ce7 gcr.io/magic-modules/go-ruby-python:1.11.5-2.6.0-2.7-v6`
6. Push the image: `docker push gcr.io/magic-modules/go-ruby-python:1.11.5-2.6.0-2.7-v6
5. Add the appropriate tag `docker tag ac37c0af8ce7 gcr.io/graphite-docker-images/go-ruby-python:1.11.5-2.6.0-2.7-v6`
6. Push the image: `docker push gcr.io/graphite-docker-images/go-ruby-python:1.11.5-2.6.0-2.7-v6
7. Check the UI and ensure the new version is available and tagged at `latest`. It must be tagged `latest` for the Kokoro builds to get the correct version.
`

Expand Down
2 changes: 1 addition & 1 deletion .ci/containers/downstream-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from golang:1.13-stretch as resource
from golang:1.16.3-stretch as resource

SHELL ["/bin/bash", "-c"]

Expand Down

0 comments on commit b3e507f

Please sign in to comment.