# Docker image for Percona PostgreSQL distribution for Percona operator

**URL:** <https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785>\
**Category:** Percona Operator for PostgreSQL\
**Created:** [July 20, 2023, 1:46pm UTC](https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785 "2023-07-20T13:46:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marios\_Cako](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marios_cako/32/11796_2.png) [@Marios\_Cako](https://forums.percona.com/u/Marios_Cako)\
**Post date:** [July 20, 2023, 1:46pm UTC](https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785/1 "2023-07-20T13:46:44Z")

</div>

Hi all,

I am trying to find the Dockerfile which creates the images published here [Docker](https://hub.docker.com/r/percona/percona-postgresql-operator/tags?page=1&name=2.2.0-ppg15).

I have found the `percona-docker` repository, and specifically the directory `postgresql-containers/build/postgres-ha` ([https://github.com/percona/percona-docker/tree/main/postgresql-containers/build/postgres-ha](https://github.com/percona/percona-docker/tree/main/postgresql-containers/build/postgres-ha)) which is close to what I am looking for, but it doesn’t seem to create the same docker image as the one published. Is there some other repository that I am missing?

---

<div class="post-metadata">

**Author:** ![Sergey\_Zhuravlev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_zhuravlev/32/6410_2.png) [@Sergey\_Zhuravlev](https://forums.percona.com/u/Sergey_Zhuravlev)\
**Post date:** [July 24, 2023, 6:19pm UTC](https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785/2 "2023-07-24T18:19:22Z")

</div>

I also join the question.

I’m also interested in Dockerfile for postgres PGO.  
There is a desire to compile a simple extension for PG.  
Where to get instructions? How to do it better?

---

<div class="post-metadata">

**Author:** ![Jan\_Wieremjewicz](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jan_wieremjewicz/32/7324_2.png) [@Jan\_Wieremjewicz](https://forums.percona.com/u/Jan_Wieremjewicz)\
**Post date:** [July 25, 2023, 7:46am UTC](https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785/3 "2023-07-25T07:46:23Z")

</div>

Marios, Sergey  
unfortunately currently we currently do not provide an officially supported Docker image. That being said I am happy to share that we are working on this.

We have a [Dockerfile in our official repository](https://github.com/percona/percona-docker/blob/main/percona-distribution-postgresql-15/Dockerfile), the images are published under [Perconalab account on Docker Hub](https://hub.docker.com/r/perconalab/percona-distribution-postgresql) as these are testing stage and we do not recommend their usage on Prod.

As this is testing, not all versions have images available. On this stage we are looking for feedback about it, whether you find it useful in this shape or would find a more micro-services oriented Dockerfiles more useful.

Could you provide some description of use cases for which you are looking to apply this Docker? I mean, do you plan to use it in Dev, Test or Prod? What are the extensions you are particularly going to use? Where is it going to be deployed?

---

<div class="post-metadata">

**Author:** ![Sergey\_Zhuravlev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_zhuravlev/32/6410_2.png) [@Sergey\_Zhuravlev](https://forums.percona.com/u/Sergey_Zhuravlev)\
**Post date:** [July 25, 2023, 11:04am UTC](https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785/4 "2023-07-25T11:04:02Z")

</div>

Jan!  
Now we plan to use PGO v2 in a DEV environment.

We use extensions:

1. pg\_cron – very popular IMHO must have
2. citus – experiment with it
3. is\_jsonb\_valid – the purpose is clear by name, we always compile it from source for ourselves for all platforms

Deploy on our own k8s cluster

---

<div class="post-metadata">

**Author:** ![Jan\_Wieremjewicz](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jan_wieremjewicz/32/7324_2.png) [@Jan\_Wieremjewicz](https://forums.percona.com/u/Jan_Wieremjewicz)\
**Post date:** [August 1, 2023, 11:20am UTC](https://forums.percona.com/t/docker-image-for-percona-postgresql-distribution-for-percona-operator/23785/5 "2023-08-01T11:20:38Z")

</div>

Thanks Sergey, I have added these notes for our devs!
