@@ -22,13 +22,14 @@ summary: Creating a container image for CloudNativePG Operator v2.0
2222---
2323
2424## Summary
25- In an almost [ two years old blog post] ({{% ref "/blog/creating-container-images/" %}}), we explained how
26- to build a custom container image for CloudNativePG. After two years, many things have changed in the world of containers.
25+ Almost two years ago, we wrote a [ blog post on
26+ building custom container images for CloudNativePG] ({{% ref "/blog/creating-container-images/" %}}).
27+ Since then, many things have changed in the world of containers.
2728One of those things has been the introduction of [ Bake] ( https://docs.docker.com/build/bake/ ) in Docker, which allows you to build
2829images using a simple configuration file. Bake is now our recommended way to build images for CloudNativePG.
2930
30- We will follow a simple baking recipe to create a custom container image or a set of container images, since Bake
31- allows you to build multiple images at once in a simple way .
31+ We will follow a simple baking recipe to create a custom container image.
32+ Bake will also allow you to easily build multiple images at the same time .
3233
3334## Ingredients
3435
8182There are a few things that we should remark here:
8283
8384- The ` extensions ` variable is a list of extensions that we want to include in the image. In our recipe we are using ` pg_vector ` ,
84- but you can add any other extension that you want to include in the image .
85+ but you can add any other extension you want.
8586- The ` dockerfile-inline ` variable contains our Dockerfile definition, which cannot be used remotely. We will explain more about this later.
8687- The ` target ` and the ` tgt ` have the same name, you can use whatever you want here as a name
8788- The ` pgVersion ` variable is a list that contains basically the MAJOR.MINOR version of PostgreSQL
0 commit comments