Added up SRV_APT_GET_INSTALL feature
This commit is contained in:
parent
25161d2d6c
commit
9f2f88043f
2 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@ build:
|
||||||
- docker build -t $IMAGE_TAG .
|
- docker build -t $IMAGE_TAG .
|
||||||
- docker push $IMAGE_TAG
|
- docker push $IMAGE_TAG
|
||||||
|
|
||||||
release-image:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
|
@ -7,6 +7,7 @@ ARG SRV_VERSION="0"
|
||||||
ENV SRV_UID $SRV_UID
|
ENV SRV_UID $SRV_UID
|
||||||
ENV SRV_GID $SRV_GID
|
ENV SRV_GID $SRV_GID
|
||||||
ENV SRV_VERSION $SRV_VERSION
|
ENV SRV_VERSION $SRV_VERSION
|
||||||
|
ENV SRV_APT_GET_INSTALL $SRV_APT_GET_INSTALL
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND "noninteractive"
|
ENV DEBIAN_FRONTEND "noninteractive"
|
||||||
ENV PGDATA "/pgdata"
|
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-pgrouting-scripts postgresql-15-pgsphere postgresql-15-postgis-3 \
|
||||||
postgresql-15-postgis-3-scripts postgresql-15-repack postgresql-15-set-user \
|
postgresql-15-postgis-3-scripts postgresql-15-repack postgresql-15-set-user \
|
||||||
postgresql-15-similarity postgresql-15-pgpool2 postgresql-15-semver \
|
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
|
apt-get clean
|
||||||
|
|
||||||
ENV PATH="/usr/lib/postgresql/15/bin:$PATH"
|
ENV PATH="/usr/lib/postgresql/15/bin:$PATH"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue