First version of BCI based on Tumbleweed
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-14-image?expand=0&rev=1
This commit is contained in:
46
Dockerfile
Normal file
46
Dockerfile
Normal file
@@ -0,0 +1,46 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#!BuildTag: suse/postgres:14
|
||||
#!BuildTag: suse/postgres:latest
|
||||
#!BuildTag: suse/postgres:14-%RELEASE%
|
||||
#!BuildTag: suse/postgres:%%pg_version%%
|
||||
FROM opensuse/tumbleweed:latest
|
||||
|
||||
MAINTAINER SUSE LLC (https://www.suse.com/)
|
||||
|
||||
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
||||
# labelprefix=com.suse.application.postgres
|
||||
LABEL org.opencontainers.image.title="SLE PostgreSQL 14 Container Image"
|
||||
LABEL org.opencontainers.image.description="PostgreSQL 14 based on the SLE Base Container Image."
|
||||
LABEL org.opencontainers.image.version="14"
|
||||
LABEL org.opencontainers.image.url="https://www.suse.com/products/server/"
|
||||
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
||||
LABEL org.opencontainers.image.vendor="SUSE LLC"
|
||||
LABEL org.opensuse.reference="registry.suse.com/suse/postgres:14-%RELEASE%"
|
||||
LABEL org.openbuildservice.disturl="%DISTURL%"
|
||||
LABEL com.suse.supportlevel="techpreview"
|
||||
LABEL com.suse.eula="sle-bci"
|
||||
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle"
|
||||
LABEL com.suse.image-type="application"
|
||||
LABEL com.suse.release-stage="beta"
|
||||
# endlabelprefix
|
||||
|
||||
|
||||
RUN set -euo pipefail && zypper -n in --no-recommends postgresql14-server distribution-release && zypper -n clean && rm -rf /var/log/*
|
||||
|
||||
ENV LANG="en_US.utf8"
|
||||
ENV PG_MAJOR="14"
|
||||
ENV PG_VERSION="%%pg_version%%"
|
||||
ENV PGDATA="/var/lib/postgresql/data"
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
CMD ["postgres"]
|
||||
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
RUN set -euo pipefail && chmod +x /usr/local/bin/docker-entrypoint.sh && \
|
||||
ln -s su /usr/bin/gosu && \
|
||||
mkdir /docker-entrypoint-initdb.d && \
|
||||
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql14/postgresql.conf.sample
|
||||
|
||||
STOPSIGNAL SIGINT
|
||||
EXPOSE 5432
|
Reference in New Issue
Block a user