Skip to content

Commit c21d299

Browse files
committed
docs: local testing
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 11df717 commit c21d299

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ the designated workflow called "Container Images from Commitfest patch" from the
3939
The action summary provides all the details you need to effectively use the
4040
image.
4141

42+
## Building images locally
43+
44+
If you want to build these images locally, first make sure you meet the
45+
following [prerequisites](https://github.com/cloudnative-pg/postgres-containers/blob/main/BUILD.md#prerequisites).
46+
To build and push every flavor (minimal, standard, and PostGIS), run:
47+
48+
```
49+
docker buildx bake --push
50+
```
51+
52+
By default, the build process assumes a registry server runs locally at `localhost:5000`.
53+
You can either [deploy a disposable registry at localhost:5000](https://github.com/cloudnative-pg/postgres-containers/blob/main/BUILD.md#local-testing), or [specify a different registry](https://github.com/cloudnative-pg/postgres-containers/blob/main/BUILD.md#the-distribution-registry).
54+
4255
## License and Copyright
4356

4457
This software is licensed under the [Apache License 2.0](LICENSE).

0 commit comments

Comments
 (0)