Challenge 2: A faster feedback loop

Previous Challenge Next Challenge

Introduction

Waiting for a slow deployment is stressful. Some might argue that it is just as stressful as watching 2001: A Space Odyssey from start to finish. Let’s fix that using the Artifact Registry.

Artifact Registry

Description

Although the previous step already created a container registry managed by Cloud Run, we want our own to control its various aspects. Create a new standard Artifact Registry in us-central1. Build the image locally (using the provided Dockerfile), run it locally to verify that everything works as expected, and push it to the newly created Artifact Registry. Make sure that the Cloud Run is using the latest image.

Success Criteria

  • Verify that the container can run locally
  • Cloud Run is using the pushed image
  • The tests in faster-feedback.test.js are all passing
  • No code change is needed for this challenge

Learning Resources

Tips

  • Make sure docker is authenticated properly (or you’ll get an error that says the repository doesn’t exist)
  • Don’t expect your changes to appear after a push. Cloud Run only pulls an updated container image when you create a revision

Previous Challenge Next Challenge