Skip to content

Commit

Permalink
add pldebugger
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznak committed Jul 19, 2024
1 parent 031e7d6 commit f64548d
Showing 1 changed file with 36 additions and 19 deletions.
55 changes: 36 additions & 19 deletions cloudnativepg-configured/16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ LABEL name="PostgreSQL + PostGIS + Some Extensions Container Images" \
# build locale
RUN localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.UTF-8

# Install timescaledb 2.x
RUN apt-get update \
&& apt-get install -y lsb-release wget \
&& echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | tee /etc/apt/sources.list.d/timescaledb.list \
&& wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | apt-key add - \
&& apt-get update \
&& apt-get install -y "timescaledb-2-postgresql-${PG_MAJOR}" "timescaledb-toolkit-postgresql-${PG_MAJOR}" \
&& apt-get remove -y lsb-release wget \
&& apt-get autoremove -y \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Install pg_cron
RUN apt-get update \
&& apt-get install -y postgresql-16-cron \
&& apt-get autoremove -y \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Install pgTAP 1.3.3
RUN apt-get update \
&& apt-get install -y unzip wget make gcc patch \
Expand All @@ -48,6 +29,30 @@ RUN apt-get update \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Install pldebugger
# # https://github.com/EnterpriseDB/pldebugger
RUN apt-get update \
&& apt-get install -y unzip wget make gcc patch \
&& wget https://github.com/EnterpriseDB/pldebugger/archive/refs/tags/v1.8.zip \
&& unzip v1.8.zip \
&& cd pldebugger-1.8 \
&& make \
&& make install \
# && make installcheck \ # if server is not running, installcheck fails.
&& cd .. \
&& rm -rf pldebugger-1.8/ v1.8.zip \
&& apt-get remove -y unzip wget patch make gcc patch \
&& apt-get autoremove -y \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Install pg_cron
RUN apt-get update \
&& apt-get install -y postgresql-16-cron \
&& apt-get autoremove -y \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Install multicorn2
RUN apt-get update \
&& apt-get install -y \
Expand All @@ -70,5 +75,17 @@ RUN apt-get update \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Install timescaledb 2.x
RUN apt-get update \
&& apt-get install -y lsb-release wget \
&& echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | tee /etc/apt/sources.list.d/timescaledb.list \
&& wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | apt-key add - \
&& apt-get update \
&& apt-get install -y "timescaledb-2-postgresql-${PG_MAJOR}" "timescaledb-toolkit-postgresql-${PG_MAJOR}" \
&& apt-get remove -y lsb-release wget \
&& apt-get autoremove -y \
&& apt-get clean \
&& echo /tmp/* /var/lib/apt/lists/* | xargs rm -rf

# Change the uid of postgres to 26
USER 26

0 comments on commit f64548d

Please sign in to comment.