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

Use AR instead of GCR for whereami #259

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

irvifa
Copy link
Contributor

@irvifa irvifa commented Jan 1, 2022

  • Please see Use AR instead of GCR for Deployments #209.

    • AR = Artifact Registry

    • GCR = Google Container Registry

    • This pull-request for whereami:v1.2.6:

    • I'm replacing instances of the images' GCR URLs with the equivalent AR URLs.

      • gcr.io/google-samples/whereami:v1.2.6us-docker.pkg.dev/google-samples/containers/gke/whereami:v1.2.6

So once merged, I would have to update the above tutorials via this Google-internal content publisher.

We can verify that the AR (replacement) images and GCR (replaced) images are equivalent like so:

1. Pull the 2 images you want to compare:
docker image pull gcr.io/google-samples/whereami:v1.2.6
docker image pull us-docker.pkg.dev/google-samples/containers/gke/whereami:v1.2.6
2. Inspecting both images:
docker image inspect gcr.io/google-samples/whereami:v1.2.6
docker image inspect us-docker.pkg.dev/google-samples/containers/gke/whereami:v1.2.6
3. See that the [RootFS values match](https://stackoverflow.com/questions/46321878/how-to-verify-if-the-content-of-two-docker-images-is-exactly-the-same/46322160#46322160).

@irvifa irvifa requested a review from a team as a code owner January 1, 2022 19:43
@irvifa
Copy link
Contributor Author

irvifa commented Jan 1, 2022

Related to #209

* Please see [Use AR instead of GCR for Deployments GoogleCloudPlatform#209](GoogleCloudPlatform#209).

    * AR = Artifact Registry

    * GCR = Google Container Registry

    * This pull-request for `whereami:v1.2.6`:

    * I'm replacing instances of the images' GCR URLs with the equivalent AR URLs.

      * `gcr.io/google-samples/whereami:v1.2.6` → `us-docker.pkg.dev/google-samples/containers/gke/whereami:v1.2.6`

So once merged, I would have to update the above tutorials via [this Google-internal content publisher](https://devsite.corp.google.com/publisher).

We can verify that the AR (replacement) images and GCR (replaced) images are equivalent like so:

    1. Pull the 2 images you want to compare:

```
docker image pull gcr.io/google-samples/whereami:v1.2.6
docker image pull us-docker.pkg.dev/google-samples/containers/gke/whereami:v1.2.6
```

    2. Inspecting both images:

```
docker image inspect gcr.io/google-samples/whereami:v1.2.6
docker image inspect us-docker.pkg.dev/google-samples/containers/gke/whereami:v1.2.6
```

    3. See that the [RootFS values match](https://stackoverflow.com/questions/46321878/how-to-verify-if-the-content-of-two-docker-images-is-exactly-the-same/46322160#46322160).
@NimJay NimJay self-requested a review January 6, 2022 20:06
@NimJay NimJay changed the title feat: Use AR instead of GCR on whoami example feat: Use AR instead of GCR for whereami Jan 7, 2022
@NimJay NimJay changed the title feat: Use AR instead of GCR for whereami Use AR instead of GCR for whereami Jan 7, 2022
Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

Thank you so much for preparing this pull-request, @irvifa! 👏

The RootFS values of the images match.
We will also need to update whereami/README.md; that is, we'll need to replace the instances of gcr.io/google-samples/whereami:v1.2.6. I will prepare a separate pull-request for this.

Approved. And merging.

@NimJay NimJay merged commit 99ef0e0 into GoogleCloudPlatform:main Jan 7, 2022
@NimJay NimJay mentioned this pull request Jan 7, 2022
17 tasks
@irvifa irvifa deleted the feat/use-ar-instead-of-gcr branch January 12, 2022 12:12
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