Compare commits
5 Commits
postgresql
...
postgresql
| Author | SHA1 | Date | |
|---|---|---|---|
| 33f2a84b7b | |||
| 2dc2d49ba8 | |||
| 6aa60bbebe | |||
| e2008d8b13 | |||
| 6950cbf180 |
14
Dockerfile
14
Dockerfile
@@ -9,6 +9,7 @@ ARG IMG_NAME
|
|||||||
ARG IMG_NAME_FULL
|
ARG IMG_NAME_FULL
|
||||||
ARG IMG_VERSION
|
ARG IMG_VERSION
|
||||||
ARG IMG_MAINTAINER
|
ARG IMG_MAINTAINER
|
||||||
|
ARG IMG_URL
|
||||||
|
|
||||||
LABEL org.rx3.${IMG_NAME}.name=${IMG_NAME_FULL}
|
LABEL org.rx3.${IMG_NAME}.name=${IMG_NAME_FULL}
|
||||||
LABEL org.rx3.${IMG_NAME}.version=${IMG_VERSION}
|
LABEL org.rx3.${IMG_NAME}.version=${IMG_VERSION}
|
||||||
@@ -61,12 +62,16 @@ then
|
|||||||
fi'
|
fi'
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------
|
||||||
ARG POSTGRESQLD_INI='[program:postgresqld] \n\
|
ARG POSTGRESQLD_INI='[program:postgresqld] \n\
|
||||||
command=/usr/bin/postgres -D '${POSTGRESQL_DATA}' -p '${POSTGRESQL_PORT}' \n\
|
command=/usr/bin/postgres -D '${POSTGRESQL_DATA}' -p '${POSTGRESQL_PORT}' \n\
|
||||||
user=postgres'
|
user=postgres'
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------
|
||||||
ARG POSTSQL='#!/bin/bash \n\
|
ARG POSTSQL='#!/bin/bash \n\
|
||||||
\n\
|
\n\
|
||||||
@@ -98,6 +103,8 @@ fi
|
|||||||
log "Completed"'
|
log "Completed"'
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------
|
||||||
ARG POSTSQL_INI='[program:postsql] \n\
|
ARG POSTSQL_INI='[program:postsql] \n\
|
||||||
command=/usr/local/sbin/postsql'
|
command=/usr/local/sbin/postsql'
|
||||||
@@ -105,7 +112,9 @@ command=/usr/local/sbin/postsql'
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN urpmi --force postgresql15 postgresql15-server postgresql15-pl \
|
RUN . /etc/profile.d/rx3.sh && isl --add ${IMG_URL} \
|
||||||
|
&& urpmi.update -a \
|
||||||
|
&& urpmi --force postgresql15 postgresql15-server postgresql15-pl \
|
||||||
&& echo -e "${POSTGRESQLD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/postgresqld \
|
&& echo -e "${POSTGRESQLD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/postgresqld \
|
||||||
&& chmod a+x /etc/init.d/postgresqld \
|
&& chmod a+x /etc/init.d/postgresqld \
|
||||||
&& ln -s /etc/init.d/postgresqld /etc/rcD.d/S30postgresqld \
|
&& ln -s /etc/init.d/postgresqld /etc/rcD.d/S30postgresqld \
|
||||||
@@ -115,7 +124,10 @@ RUN urpmi --force postgresql15 postgresql15-server postgresql15-pl
|
|||||||
&& echo -e "${POSTSQL_INI}" | sed -e 's/ *$//' > /etc/supervisord.d/postsql.ini
|
&& echo -e "${POSTSQL_INI}" | sed -e 's/ *$//' > /etc/supervisord.d/postsql.ini
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VOLUME ${POSTGRESQL_LIB}
|
VOLUME ${POSTGRESQL_LIB}
|
||||||
VOLUME ${POSTGRESQL_LOG}
|
VOLUME ${POSTGRESQL_LOG}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXPOSE ${POSTGRESQL_PORT}
|
EXPOSE ${POSTGRESQL_PORT}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Welcome to Rx3-Docker/PostgreSQL docker image!
|
|||||||
This project aims to build a PostgreSQL docker image used by other Rx3 packaging projects.
|
This project aims to build a PostgreSQL docker image used by other Rx3 packaging projects.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
- Curtently based on rx3-docker/server:1.2.1-mga9 image,
|
- Curtently based on postgresql 15.18 and rx3-docker/server:1.4.0-mga9 image,
|
||||||
- Following env vars supported:
|
- Following env vars supported:
|
||||||
- POSTGRESQL_UID & POSTGRESQL_GID,
|
- POSTGRESQL_UID & POSTGRESQL_GID,
|
||||||
- POSTGRESQL_POSTGRES_PASSWORD,
|
- POSTGRESQL_POSTGRES_PASSWORD,
|
||||||
@@ -13,6 +13,7 @@ Features:
|
|||||||
- POSTGRESQL_USER & POSTGRESQL_PASSWORD.
|
- POSTGRESQL_USER & POSTGRESQL_PASSWORD.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enjoy it!
|
Enjoy it!
|
||||||
|
|
||||||
Your Rx3 Team.
|
Your Rx3 Team.
|
||||||
|
|||||||
@@ -1,3 +1,49 @@
|
|||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Docker/PostgreSQL V 1.2.0 - A. GIBERT - 2026/05/30
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Now use rx3-docker/server:1.4.0-mga9 image,
|
||||||
|
- Now use docker-tools-1.5.2,
|
||||||
|
- Rebuild for updates.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Docker/PostgreSQL V 1.1.6 - A. GIBERT - 2026/02/16
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Add ISL support,
|
||||||
|
- Now use rx3-docker/server:1.3.0-mga9 image,
|
||||||
|
- Rebuild for updates.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Docker/PostgreSQL V 1.1.5 - A. GIBERT - 2025/11/28
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Now use rx3-docker/server:1.2.7-mga9 image,
|
||||||
|
- Rebuild for updates.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Docker/PostgreSQL V 1.1.4 - A. GIBERT - 2025/09/19
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Now use rx3-docker/server:1.2.6-mga9 image,
|
||||||
|
- Rebuild for updates.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Docker/PostgreSQL V 1.1.3 - A. GIBERT - 2025/04/21
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Now use rx3-docker/server:1.2.2-mga9 image.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Rx3-Docker/PostgreSQL V 1.1.2 - A. GIBERT - 2025/03/10
|
Rx3-Docker/PostgreSQL V 1.1.2 - A. GIBERT - 2025/03/10
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -11,7 +57,7 @@ Rx3-Docker/PostgreSQL V 1.1.2 - A. GIBERT - 2025/03/10
|
|||||||
Rx3-Docker/PostgreSQL V 1.1.1 - A. GIBERT - 2025/03/08
|
Rx3-Docker/PostgreSQL V 1.1.1 - A. GIBERT - 2025/03/08
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
- Use now rx3-docker/server:1.2.1-mga9 image.
|
- Now use rx3-docker/server:1.2.1-mga9 image.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -22,7 +68,7 @@ Rx3-Docker/PostgreSQL V 1.1.0 - A. GIBERT - 2024/11/12
|
|||||||
- Move & Rename repo from Rx3/PostgreSQL-MGA9 to Rx3-Docker/PostgreSQL,
|
- Move & Rename repo from Rx3/PostgreSQL-MGA9 to Rx3-Docker/PostgreSQL,
|
||||||
- New version naming standard,
|
- New version naming standard,
|
||||||
- Now use docker_tools for .env building,
|
- Now use docker_tools for .env building,
|
||||||
- Use now rx3-docker/server:1.2.0-mga9 image,
|
- Now use rx3-docker/server:1.2.0-mga9 image,
|
||||||
- Add /var/log/init, /var/log/supervisor & var/log/postgres volumes,
|
- Add /var/log/init, /var/log/supervisor & var/log/postgres volumes,
|
||||||
- Add healthcheck example in compose file.
|
- Add healthcheck example in compose file.
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ services:
|
|||||||
IMG_NAME_FULL: ${DATABASE_IMG_NAME_FULL}
|
IMG_NAME_FULL: ${DATABASE_IMG_NAME_FULL}
|
||||||
IMG_VERSION: ${DATABASE_IMG_VERSION}
|
IMG_VERSION: ${DATABASE_IMG_VERSION}
|
||||||
IMG_MAINTAINER: ${DATABASE_IMG_MAINTAINER}
|
IMG_MAINTAINER: ${DATABASE_IMG_MAINTAINER}
|
||||||
|
IMG_URL: ${DATABASE_IMG_URL}
|
||||||
IMG_FROM_URL: ${DATABASE_IMG_FROM_URL}
|
IMG_FROM_URL: ${DATABASE_IMG_FROM_URL}
|
||||||
|
|
||||||
POSTGRESQL_LIB: ${DATABASE_LIB_INT}
|
POSTGRESQL_LIB: ${DATABASE_LIB_INT}
|
||||||
|
|||||||
7
env.dist
7
env.dist
@@ -17,6 +17,7 @@ ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
|
|||||||
# Image Settings
|
# Image Settings
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
APPL_NAME=""
|
||||||
HOST_NAME_PREFIX=""
|
HOST_NAME_PREFIX=""
|
||||||
|
|
||||||
PORT_ENV_OFFSET=0
|
PORT_ENV_OFFSET=0
|
||||||
@@ -24,8 +25,8 @@ PORT_ENV_OFFSET=0
|
|||||||
PORT_SV_INT=9001
|
PORT_SV_INT=9001
|
||||||
PORT_SV_OFFSET=1000
|
PORT_SV_OFFSET=1000
|
||||||
|
|
||||||
NETWORK_NAME=${HOST_NAME_PREFIX}
|
#NETWORK_NAME=${HOST_NAME_PREFIX}
|
||||||
NETWORK_IF_NAME=br-${APPL_NAME_SHORT}-${APPL_ENV}
|
#NETWORK_IF_NAME=br-${APPL_NAME_SHORT}-${APPL_ENV}
|
||||||
|
|
||||||
DOCKER_TOOLS_DEBUG=FALSE
|
DOCKER_TOOLS_DEBUG=FALSE
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@ DOCKER_TOOLS_EXEPTION_LIBS="postgres:pgsql"
|
|||||||
# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id |
|
# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id |
|
||||||
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
|
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
|
||||||
|
|
||||||
docker_service_add DATABASE database ${ORG_URL_PREFIX} postgresql "Rx3-Docker/PostgreSQL" 1.1.2-mga9 ${ORG_URL_PREFIX} server 1.2.1-mga9 postgres - 8032 5432 - - 983 981
|
docker_service_add DATABASE database ${ORG_URL_PREFIX} postgresql "Rx3-Docker/PostgreSQL" 1.2.0-mga9 ${ORG_URL_PREFIX} server 1.4.0-mga9 postgres - 8032 5432 - - 983 981
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user