Skip to content

Commit e27deab

Browse files
authored
Merge pull request #8 from balinorLiang/export_1521_port
export oracle mode port 1521
2 parents 30908eb + eda384c commit e27deab

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

3/ubi8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ ENTRYPOINT ["docker-entrypoint.sh"]
109109

110110
STOPSIGNAL SIGINT
111111

112-
EXPOSE 5432 5866
112+
EXPOSE 5432 5866 1521
113113

114114
CMD ["postgres"]

3/ubi8/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ docker_init_database_dir() {
9191
# --pwfile refuses to handle a properly-empty file (hence the "\n"): https://github.com/docker-library/postgres/issues/1025
9292
eval 'initdb --username="$IVORYSQL_USER" --pwfile=<(printf "%s\n" "$IVORYSQL_PASSWORD") '"$IVORYSQL_INITDB_ARGS"' "$@"'
9393
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" $PGDATA/postgresql.conf
94+
sed -ri "s!^#?(ivorysql.listen_addresses)\s*=\s*\S+.*!\1 = '*'!" $PGDATA/ivorysql.conf
9495
# unset/cleanup "nss_wrapper" bits
9596
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
9697
rm -f "$NSS_WRAPPER_PASSWD" "$NSS_WRAPPER_GROUP"

Dockerfile-redhat.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ ENTRYPOINT ["docker-entrypoint.sh"]
103103

104104
STOPSIGNAL SIGINT
105105

106-
EXPOSE 5432 5866
106+
EXPOSE 5432 5866 1521
107107

108108
CMD ["postgres"]

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ docker_init_database_dir() {
9191
# --pwfile refuses to handle a properly-empty file (hence the "\n"): https://github.com/docker-library/postgres/issues/1025
9292
eval 'initdb --username="$IVORYSQL_USER" --pwfile=<(printf "%s\n" "$IVORYSQL_PASSWORD") '"$IVORYSQL_INITDB_ARGS"' "$@"'
9393
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" $PGDATA/postgresql.conf
94+
sed -ri "s!^#?(ivorysql.listen_addresses)\s*=\s*\S+.*!\1 = '*'!" $PGDATA/ivorysql.conf
9495
# unset/cleanup "nss_wrapper" bits
9596
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
9697
rm -f "$NSS_WRAPPER_PASSWD" "$NSS_WRAPPER_GROUP"

0 commit comments

Comments
 (0)