Skip to content

Commit c5bbb61

Browse files
expose obshell dashboard's port by default (#66)
1 parent 1e6c846 commit c5bbb61

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

seekdb/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ Before deploying `seekdb`, ensure that the following requirements are met:
2020
To start a SeekDB instance, use the following commands:
2121

2222
```bash
23-
docker run -d -p 2881:2881 oceanbase/seekdb
23+
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb
2424

2525
# Execute init SQL scripts after bootstrap, you need to mount the directory containing the init scripts then specify the directory in container via environment variable INIT_SCRIPTS_PATH.
2626
# Please do not change root user's password in SQL scripts. If you'd like to change root user's password, use environment variable ROOT_PASSWORD.
27-
docker run -d -p 2881:2881 -v {init_sql_folder_path}:/root/boot/init.d -e INIT_SCRIPTS_PATH=/root/boot/init.d oceanbase/seekdb
27+
docker run -d -p 2881:2881 -p 2886:2886 -v {init_sql_folder_path}:/root/boot/init.d -e INIT_SCRIPTS_PATH=/root/boot/init.d oceanbase/seekdb
2828
```
2929

3030
## Supported Environment Variables
@@ -58,15 +58,15 @@ log_disk_size=2G
5858
The start command should be like this.
5959
```
6060
# **Note:** If you decide to use a configuration file, please don't specify the resource related environment variables.
61-
docker run -d -p 2881:2881 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb
61+
docker run -d -p 2881:2881 -p 2886:2886 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb
6262
```
6363

6464
## Data Persistence
6565
SeekDB deploys in directory /var/lib/oceanbase, if you'd like to persist the data on the host server, please mount an empty directory on the host server to this path.
6666

6767
```
6868
mkdir -p seekdb
69-
docker run -d -p 2881:2881 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb
69+
docker run -d -p 2881:2881 -p 2886:2886 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb
7070
```
7171

7272
## Connecting to SeekDB Instance
@@ -75,12 +75,6 @@ docker run -d -p 2881:2881 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb ocean
7575
mysql -h 127.0.0.1 -P 2881 -u root -p # Connect with the root account
7676
```
7777

78-
## Access obshell dashboard
79-
The container launches obshell as well, it provide a user-friendly web interface, if you'd like to access obshell dashboard, you may expose the obshell dashboard's port as well.
80-
```
81-
# 2886 is the port of obshell dashboard
82-
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb
83-
```
84-
you may access it in the browser `http://${server_ip}:2886`, the login password is the same as user root's password. If ROOT_PASSWORD is not set, leave the password field blank.
85-
78+
## Access dashboard
79+
The container provides a user-friendly web interface, you can access it in the browser `http://${server_ip}:2886`, the login password is the same as user root's password. If ROOT_PASSWORD is not set, leave the password field blank.
8680

seekdb/README_CN.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
要启动 SeekDB 实例,请使用以下命令:
2121

2222
```bash
23-
docker run -d -p 2881:2881 oceanbase/seekdb
23+
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb
2424

2525
# 在引导后执行初始化 SQL 脚本,您需要挂载包含初始化脚本的目录,然后通过环境变量 INIT_SCRIPTS_PATH 指定容器中的挂载目录。
2626
# 请勿在 SQL 脚本中更改 root 用户的密码。如果您想更改 root 用户的密码,请使用环境变量 ROOT_PASSWORD。
27-
docker run -d -p 2881:2881 -v {init_sql_folder_path}:/root/boot/init.d -e INIT_SCRIPTS_PATH=/root/boot/init.d oceanbase/seekdb
27+
docker run -d -p 2881:2881 -p 2886:2886 -v {init_sql_folder_path}:/root/boot/init.d -e INIT_SCRIPTS_PATH=/root/boot/init.d oceanbase/seekdb
2828
```
2929

3030
## 支持的环境变量
@@ -58,15 +58,15 @@ log_disk_size=2G
5858
启动命令应如下所示。
5959
```
6060
# **注意:** 如果您决定使用配置文件,请不要指定与资源相关的环境变量。
61-
docker run -d -p 2881:2881 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb
61+
docker run -d -p 2881:2881 -p 2886:2886 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb
6262
```
6363

6464
## 数据持久化
6565
SeekDB 部署在 `/var/lib/oceanbase` 目录中,如果您想将数据持久化到主机服务器,请将主机服务器上的空目录挂载到此路径。
6666

6767
```
6868
mkdir -p seekdb
69-
docker run -d -p 2881:2881 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb
69+
docker run -d -p 2881:2881 -p 2886:2886 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb
7070
```
7171

7272
## 连接到 SeekDB 实例
@@ -76,9 +76,4 @@ mysql -h 127.0.0.1 -P 2881 -u root -p # 使用 root 帐户连接
7676
```
7777

7878
## 访问 obshell dashboard
79-
容器也会启动 obshell,它提供了一个用户友好的 Web 界面,如果您想访问 obshell dashboard,您也可以暴露 obshell dashboard 的端口。
80-
```
81-
# 2886 是 obshell dashboard 的端口
82-
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb
83-
```
84-
您可以通过浏览器访问 `http://${server_ip}:2886`,登录密码与 root 用户的密码相同。如果未设置 ROOT_PASSWORD,请将密码字段留空。
79+
容器提供了一个用户友好的 Web 界面,您可以通过浏览器访问 `http://${server_ip}:2886`,登录密码与 root 用户的密码相同。如果未设置 ROOT_PASSWORD,请将密码字段留空。

0 commit comments

Comments
 (0)