Skip to content

Commit 0b5db2a

Browse files
committed
chore: more review
Signed-off-by: Jonathan Gonzalez V. <[email protected]>
1 parent c9ef65b commit 0b5db2a

File tree

1 file changed

+5
-4
lines changed
  • content/blog/building-images-bake

1 file changed

+5
-4
lines changed

content/blog/building-images-bake/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ allows you to build multiple images at once in a simple way.
3131
## Ingredients
3232

3333
- 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.
3435

3536
Cooking time: 5 minutes.
3637

3738
## Instructions
3839

3940
### Step 1: Prepare local Bake file
4041

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
4243

4344
```hcl
4445
extensions = [
@@ -132,8 +133,8 @@ But, how does this magic happen? Let's take a look at the Bake and the Docker fi
132133

133134
### Bake file
134135

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.
137138
It's the base for our custom Bake file.
138139

139140
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
154155

155156
## There's more!
156157

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:
158159

159160
```hcl
160161
platforms = ["linux/amd64"]

0 commit comments

Comments
 (0)