Added up SRV_APT_GET_INSTALL feature

This commit is contained in:
Torsten Raudssus 2023-03-20 04:46:47 +01:00
parent 25161d2d6c
commit 9f2f88043f
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,7 @@ build:
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
release-image:
release:
stage: release
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY

View file

@ -7,6 +7,7 @@ ARG SRV_VERSION="0"
ENV SRV_UID $SRV_UID
ENV SRV_GID $SRV_GID
ENV SRV_VERSION $SRV_VERSION
ENV SRV_APT_GET_INSTALL $SRV_APT_GET_INSTALL
ENV DEBIAN_FRONTEND "noninteractive"
ENV PGDATA "/pgdata"
@ -26,7 +27,7 @@ RUN if [ -z "$( getent group $SRV_GID )" ] ; then groupadd -r postgres --gid=$SR
postgresql-15-pgrouting-scripts postgresql-15-pgsphere postgresql-15-postgis-3 \
postgresql-15-postgis-3-scripts postgresql-15-repack postgresql-15-set-user \
postgresql-15-similarity postgresql-15-pgpool2 postgresql-15-semver \
postgresql-15-tablelog postgresql-15-wal2json && \
postgresql-15-tablelog postgresql-15-wal2json $SRV_APT_GET_INSTALL && \
apt-get clean
ENV PATH="/usr/lib/postgresql/15/bin:$PATH"