diff --git a/content/en/docs/installation/openGauss-in-Docker-container-installation-guide.md b/content/en/docs/installation/openGauss-in-Docker-container-installation-guide.md index 4b0453d98ad3ad1edbc4f3ca104fd49bd413e6c5..1e36077811ac50273c407eeb9bc020d08a985d92 100644 --- a/content/en/docs/installation/openGauss-in-Docker-container-installation-guide.md +++ b/content/en/docs/installation/openGauss-in-Docker-container-installation-guide.md @@ -24,6 +24,27 @@ Before you build the image make sure that you have provided the installation bin Choose one of: 1.0.0 SingleInstance -i: ignores the MD5 checksums +### self-defined parameter +To make openGuass mirroring more flexible, you can set additional parameters.More controllable parameters will be added in the future. The following variables are supported in the current version. + +#### `GS_PASSWORD` +This parameter must be set when you use the openGauss mirror.The parameter value cannot be null or undefined.This parameter sets the password for the openGauss database superuser OMM and the test user Gaussdb.OpenGauss is installed with omM superuser created by default, and this user name cannot be changed temporarily.The test user Gaussdb is a custom created user in [Docker-entrypoint.sh]. + +The openGauss mirror is configured with a local trust mechanism, so you do not need a password to connect to the database within the container, but you must enter a password if you want to connect from outside the container (another host or another container). + +**The openGauss password must be more than 8 characters long, and must also contain English letters, Numbers, and special symbols** + +#### `GS_NODENAME` + +Specifies that the database node name defaults to gaussdb + +#### `GS_USERNAME` + +Specifies that the database connection user name defaults to gaussdb + +#### `GS_PORT` +Specifies the database port, which defaults to 5432 + ### Architecture And Os Version diff --git "a/content/zh/docs/installation/.openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md.swp" "b/content/zh/docs/installation/.openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md.swp" new file mode 100644 index 0000000000000000000000000000000000000000..fee24834873093db2f0ece3a33834c0fb8d77143 Binary files /dev/null and "b/content/zh/docs/installation/.openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md.swp" differ diff --git "a/content/zh/docs/installation/openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md" "b/content/zh/docs/installation/openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md" index 082d515a2abae6a59c58f881c84c9f30ae567af7..6a9119d073594453b9ad6d67f42e6ae5c2d79cae 100644 --- "a/content/zh/docs/installation/openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md" +++ "b/content/zh/docs/installation/openGauss\345\256\271\345\231\250\347\211\210\346\234\254\345\256\211\350\243\205\346\214\207\345\215\227.md" @@ -24,6 +24,28 @@ Docker构建文件,方便DevOps用户的安装、配置和环境设置。. 查 Choose one of: 1.0.0 SingleInstance -i: ignores the MD5 checksums +### 环境变量 +为了更灵活的使用openGuass镜像,可以设置额外的参数。未来我们会扩充更多的可控制参数,当前版本支持以下变量的设定。 + +#### `GS_PASSWORD` +在你使用openGauss镜像的时候,必须设置该参数。该参数值不能为空或者不定义。该参数设置了openGauss数据库的超级用户omm以及测试用户gaussdb的密码。openGauss安装时默认会创建omm超级用户,该用户名暂时无法修改。测试用户gaussdb是在[docker-entry +point.sh]中自定义创建的用户。 + +openGauss镜像配置了本地信任机制,因此在容器内连接数据库无需密码,但是如果要从容器外部(其它主机或者其它容器)连接则必须要输入密码。 + +**openGauss的密码有复杂度要求,需要:密码长度8个字符以上,必须同时包含英文字母,数字,以及特殊符号** + +#### `GS_NODENAME` + +指定数据库节点名称 默认为gaussdb + +#### `GS_USERNAME` + +指定数据库连接用户名 默认为gaussdb + +#### `GS_PORT` +指定数据库端口,默认为5432 + ### 支持的架构和操作系统版本