-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #766 from SUSE/for-deploy-6
🤖: Update build recipes for SP6
- Loading branch information
Showing
9 changed files
with
478 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
------------------------------------------------------------------- | ||
Tue Nov 28 11:43:42 UTC 2023 - Dan Čermák <[email protected]> | ||
|
||
- postgresql 16 is now the latest version | ||
|
||
------------------------------------------------------------------- | ||
Wed Oct 25 15:41:24 UTC 2023 - Dirk Mueller <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Copyright (c) 2023 SUSE LLC | ||
|
||
# All modifications and additions to the file contributed by third parties | ||
# remain the property of their copyright owners, unless otherwise agreed | ||
# upon. | ||
|
||
# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. | ||
# It is maintained by the BCI team and generated by | ||
# https://github.com/SUSE/BCI-dockerfile-generator | ||
|
||
# Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||
# You can contact the BCI team via https://github.com/SUSE/bci/discussions | ||
|
||
|
||
#!BuildTag: suse/postgres:16 | ||
#!BuildTag: suse/postgres:16-%RELEASE% | ||
#!BuildTag: suse/postgres:%%pg_version%% | ||
#!BuildTag: suse/postgres:%%pg_version%%-%RELEASE% | ||
#!BuildTag: suse/postgres:latest | ||
#!BuildName: suse-postgres-16 | ||
#!BuildVersion: 15.6.16 | ||
FROM suse/sle15:15.6 | ||
|
||
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 16" | ||
LABEL org.opencontainers.image.description="PostgreSQL 16 container based on the SLE Base Container Image." | ||
LABEL org.opencontainers.image.version="16" | ||
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.opencontainers.image.source="%SOURCEURL%" | ||
LABEL org.opensuse.reference="registry.suse.com/suse/postgres:16-%RELEASE%" | ||
LABEL org.openbuildservice.disturl="%DISTURL%" | ||
LABEL com.suse.supportlevel="acc" | ||
LABEL com.suse.eula="sle-bci" | ||
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15" | ||
LABEL com.suse.image-type="application" | ||
LABEL com.suse.release-stage="beta" | ||
# endlabelprefix | ||
|
||
RUN set -euo pipefail; zypper -n in --no-recommends postgresql16-server; zypper -n clean; rm -rf /var/log/* | ||
ENV LANG="en_US.utf8" | ||
ENV PG_MAJOR="16" | ||
ENV PG_VERSION="%%pg_version%%" | ||
ENV PGDATA="/var/lib/pgsql/data" | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] | ||
CMD ["postgres"] | ||
EXPOSE 5432 | ||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \ | ||
sed -i -e 's/exec gosu postgres "/exec setpriv --reuid=postgres --regid=postgres --clear-groups -- "/g' /usr/local/bin/docker-entrypoint.sh; \ | ||
mkdir /docker-entrypoint-initdb.d; \ | ||
install -m 1775 -o postgres -g postgres -d /run/postgresql; \ | ||
install -d -m 0700 -o postgres -g postgres $PGDATA; \ | ||
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql16/postgresql.conf.sample | ||
|
||
STOPSIGNAL SIGINT | ||
HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \ | ||
CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432 | ||
|
||
VOLUME $PGDATA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Copyright (c) 2014, Docker PostgreSQL Authors (See AUTHORS) | ||
|
||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the "Software"), to deal in the Software without | ||
restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<constraints> | ||
<hardware> | ||
<disk> | ||
<size unit="G">8</size> | ||
</disk> | ||
</hardware> | ||
</constraints> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<services> | ||
<service mode="buildtime" name="docker_label_helper"/> | ||
<service mode="buildtime" name="kiwi_metainfo_helper"/> | ||
<service name="replace_using_package_version" mode="buildtime"> | ||
<param name="file">Dockerfile</param> | ||
<param name="regex">%%pg_version%%</param> | ||
<param name="package">postgresql16-server</param> | ||
<param name="parse-version">minor</param> | ||
</service> | ||
</services> |
Oops, something went wrong.