You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/building-images-bake/index.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,15 @@ allows you to build multiple images at once in a simple way.
31
31
## Ingredients
32
32
33
33
- A Bake file. We will use the one provided in the [CloudNativePG repository](https://github.com/cloudnative-pg/postgres-containers/blob/main/docker-bake.hcl)
34
+
- Another Bake file, but this time a local one, this one is to overwrite the previous one.
34
35
35
36
Cooking time: 5 minutes.
36
37
37
38
## Instructions
38
39
39
40
### Step 1: Prepare local Bake file
40
41
41
-
In a local file with name `bake.hcl`, we add the following content, which is a simple Bake file that will build a custom image
42
+
In a local file with name [bake.hcl](bake.hcl), we add the following content, which is a simple Bake file that will build a custom image
42
43
43
44
```hcl
44
45
extensions = [
@@ -132,8 +133,8 @@ But, how does this magic happen? Let's take a look at the Bake and the Docker fi
132
133
133
134
### Bake file
134
135
135
-
The magic starts with our postgres-containers repository, where we have a `docker-bake.hcl` file
136
-
that is being used to build the images provided by the CloudNativePG project.
136
+
The magic starts with our [postgres-containers repository](https://github.com/cloudnative-pg/postgres-containers),
137
+
where we have a `docker-bake.hcl` file that is being used to build the images provided by the CloudNativePG project.
137
138
It's the base for our custom Bake file.
138
139
139
140
The `docker-bake.hcl` file contains a lot of functions that are used to build the images. One of them is the `getExtensionsString()`.
@@ -154,7 +155,7 @@ on the CloudNativePG images, and we can add the extensions we want to use in our
154
155
155
156
## There's more!
156
157
157
-
You may want to avoid building arm64 image by adding the following:
158
+
You may want to avoid building arm64 images by adding the following:
0 commit comments