From the course: Kubernetes: GitOps with Argo CD

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Registering the app image with Google Artifact Registry

Registering the app image with Google Artifact Registry

From the course: Kubernetes: GitOps with Argo CD

Registering the app image with Google Artifact Registry

It's time for us to set up our simple Python application, which we'll set up as an image and reference when we deploy our infrastructure using Argo CD. We'll write the code and build the image manually. This will of course, in the real world, be done by our continuous integration pipeline. So CD into the Argo CD private repo that we cloned earlier onto Cloud Shell. Create a new subfolder called birthday app and CD into that subfolder. birthday app, we'll create a new subfolder called app which will contain the code for our application. I'll specify the commands that we'll use to build our app's image using a docker file. So create a new docker file here and here are the commands. Observe that the commands are almost exactly the same as the previous app that we built. So hopefully all of these commands are very familiar to you. Let's set up the main.py for our application. The app itself is very straightforward. There's a default route at the forward slash path, which renders out a…

Contents