Created
October 26, 2021 12:38
-
-
Save anandpathak/fea0251f3ba8b6f71f4457011da51df7 to your computer and use it in GitHub Desktop.
docker file for postgres 12 with partman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:12 | |
RUN apt-get update && \ | |
apt-get install -y git make gcc | |
RUN git clone https://github.com/pgpartman/pg_partman | |
RUN cd pg_partman && make NO_BGW=1 install | |
RUN psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -d "$POSTGRES_DB" -c "CREATE SCHEMA partman; CREATE EXTENSION pg_partman SCHEMA partman;"% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment