Skip to content

Commit a462240

Browse files
Fixed the issues reported while testing #7330.
1 parent 50cf648 commit a462240

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/en_US/container_deployment.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,14 @@ Override the default file path for the preferences customization at the containe
142142
/pgadmin4/preferences.json mapped file below for more information. See the format
143143
of the `Preferences JSON file <https://www.pgadmin.org/docs/pgadmin4/latest/preferences.html#json-format>`_.
144144

145-
**PGADMIN_CONFIG_DISTRO_FILE**
145+
**PGADMIN_CUSTOM_CONFIG_DISTRO_FILE**
146146

147147
*Default: /pgadmin4/config_distro.py*
148148

149149
Override the default file path for the pgadmin configurations file.This can be used while provisioning
150-
container with read only root file system to achieve a more secure pgadmin4 deployment for docker and kubernetes.
150+
container with read only root file system to achieve a more secure pgadmin4 deployment for kubernetes.
151+
Note that if you are externally mapping this file, then environment variables passed using PGADMIN_CONFIG_
152+
suffix will be ignored.
151153

152154
**PGPASS_FILE**
153155

pkg/docker/entrypoint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ fi
3737
file_env PGADMIN_DEFAULT_PASSWORD
3838

3939
# TO enable custom path for config_distro, pass config distro path via environment variable.
40-
export CONFIG_DISTRO_FILE_PATH="${PGADMIN_CONFIG_DISTRO_FILE:-/pgadmin4/config_distro.py}"
41-
40+
export CONFIG_DISTRO_FILE_PATH="${PGADMIN_CUSTOM_CONFIG_DISTRO_FILE:-/pgadmin4/config_distro.py}"
4241
# Populate config_distro.py. This has some default config, as well as anything
4342
# provided by the user through the PGADMIN_CONFIG_* environment variables.
4443
# Only update the file on first launch. The empty file is created during the

0 commit comments

Comments
 (0)