- Add ISL support,
- Use now rx3-docker/server:1.3.0-mga9 image, - Rebuild for updates.
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -9,6 +9,7 @@ ARG IMG_NAME
|
||||
ARG IMG_NAME_FULL
|
||||
ARG IMG_VERSION
|
||||
ARG IMG_MAINTAINER
|
||||
ARG IMG_URL
|
||||
|
||||
LABEL org.rx3.${IMG_NAME}.name=${IMG_NAME_FULL}
|
||||
LABEL org.rx3.${IMG_NAME}.version=${IMG_VERSION}
|
||||
@@ -61,12 +62,16 @@ then
|
||||
fi'
|
||||
#-----------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------------------
|
||||
ARG POSTGRESQLD_INI='[program:postgresqld] \n\
|
||||
command=/usr/bin/postgres -D '${POSTGRESQL_DATA}' -p '${POSTGRESQL_PORT}' \n\
|
||||
user=postgres'
|
||||
#-----------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------------------
|
||||
ARG POSTSQL='#!/bin/bash \n\
|
||||
\n\
|
||||
@@ -98,6 +103,8 @@ fi
|
||||
log "Completed"'
|
||||
#-----------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------------------
|
||||
ARG POSTSQL_INI='[program:postsql] \n\
|
||||
command=/usr/local/sbin/postsql'
|
||||
@@ -105,7 +112,8 @@ command=/usr/local/sbin/postsql'
|
||||
|
||||
|
||||
|
||||
RUN urpmi.update -a \
|
||||
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 \
|
||||
&& chmod a+x /etc/init.d/postgresqld \
|
||||
@@ -116,7 +124,10 @@ RUN urpmi.update -a
|
||||
&& echo -e "${POSTSQL_INI}" | sed -e 's/ *$//' > /etc/supervisord.d/postsql.ini
|
||||
|
||||
|
||||
|
||||
VOLUME ${POSTGRESQL_LIB}
|
||||
VOLUME ${POSTGRESQL_LOG}
|
||||
|
||||
|
||||
|
||||
EXPOSE ${POSTGRESQL_PORT}
|
||||
|
||||
Reference in New Issue
Block a user