Giter Club home page Giter Club logo

postgres-containers's Introduction

PostgreSQL container images extender

This repository contains the dockerfiles and scripts as well as the github actions to extend the postgresql container images from ghcr.io/cloudnative-pg/postgresql.

Building locally

To build an image locally using docker, check out the repository and run the following command:

git clone

Then you can build the image using the following command:

docker build -t postgresql .

By default the image extends version 15.3 of the cloudnative-pg operand image. You can change this by providing a different version as build argument:

docker build -t postgresql --build-arg POSTGRESQL_VERSION=15.2 .

By default this image extends the base image with the timescaledb and cron extensions. To change this, you can provide a different list of extensions as build argument:

docker build -t postgresql --build-arg EXTENSIONS="timescaledb cron" .

The supported extensions are found in the official debian apt repositories under the package names postgresql-<pg_major>-<extension>. Timescaledb is handled separately as it is not available in the official debian apt repositories.

For the Timescaledb version you can also provide a different version as build argument:

docker build -t postgresql --build-arg TIMESCALEDB_VERSION=2.11.0 .

Building with GitHub Actions

This repository contains a GitHub Actions workflow that builds the image and pushes it to the ghcr.io/<repository_owner>/postgresql repository. You can clone this repository to generate your own custom images directly in GitHub. The workflow is triggered manually and accepts the same build arguments as the local build.

The tags for the images are generated from the postgresql version and the extension list. The timescaledb extension is versioned. For example, the image for postgresql 15.3 with timescaledb 2.11.0 and cron extension would be tagged as 15.3-cron-timescaledb-2.11.0.

postgres-containers's People

Contributors

georgebarbarosie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.