forked from repo-mirrors/cnpg-postgres-containers
fix: ensure /var/lib/postgresql/data doesn't exist is system containers (#246)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
@@ -28,7 +28,8 @@ LABEL org.opencontainers.image.description="This Docker image contains PostgreSQ
|
|||||||
COPY requirements.txt /
|
COPY requirements.txt /
|
||||||
|
|
||||||
# Install additional extensions
|
# Install additional extensions
|
||||||
# RUN set -xe; \
|
RUN set -xe; \
|
||||||
|
rm -fr /var/lib/postgresql/data
|
||||||
# apt-get update; \
|
# apt-get update; \
|
||||||
# apt-get install -y --no-install-recommends \
|
# apt-get install -y --no-install-recommends \
|
||||||
# "postgresql-${PG_MAJOR}-pgvector" \
|
# "postgresql-${PG_MAJOR}-pgvector" \
|
||||||
|
@@ -29,6 +29,7 @@ COPY requirements.txt /
|
|||||||
|
|
||||||
# Install additional extensions
|
# Install additional extensions
|
||||||
RUN set -xe; \
|
RUN set -xe; \
|
||||||
|
rm -fr /var/lib/postgresql/data; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
if apt-get -s upgrade | grep "^Inst postgres"; then \
|
if apt-get -s upgrade | grep "^Inst postgres"; then \
|
||||||
echo "ERROR: Upgradable postgres packages found!"; \
|
echo "ERROR: Upgradable postgres packages found!"; \
|
||||||
|
Reference in New Issue
Block a user