人大金仓数据库管理系统(KingbaseES V8 R3) Docker 镜像
2.7K
分享将人大金仓数据库封装Docker镜像方法
使用的人大金仓版本号:V008R003C002B0320
tree ./ -L 1
./
├── build.sh
├── Dockerfile
├── entrypoint.sh
├── initdb.sh
├── kingbase.tar.gz
├── license.dat
├── password
└── README.md
0 directories, 8 files
docker pull haloking/kingbase:v8r3
docker pull ghcr.io/eazonziu/kingbase:v8r3
如果您想自己构建镜像可参照以下操作:
git clone https://github.com/EazonZiu/kingbase-v8-r3.git
cd kingbase-v8-r3
sh build.sh
sh service.sh
docker run -d --name kingbase-v8r3 -p 54321:54321 \
-e SYSTEM_USER=kingbase -e SYSTEM_PWD=qwe123 \
-v $(pwd)/volumes/opt/data:/opt/kingbase/data \
-v $(pwd)/volumes/opt/license.dat:/opt/kingbase/Server/bin/license.dat \
--restart=always kingbase:v8r3
The files belonging to this database system will be owned by user "kingbase".
This user must also own the server process.
The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".
Data page checksums are disabled.
The comparision of strings is case-insensitive.
fixing permissions on existing directory /opt/kingbase/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
create samples database ... ok
loading samples database ... ok
loading template2 database ... ok
create security database ... ok
load security database ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
./sys_ctl -D /opt/kingbase/data -l logfile start
server starting
LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "sys_log".
sh conn.sh
jdbc:kingbase8://ip:host/datasource
注意 license.dat 使用到是企业版,会有限期;使用下载的镜像可以重新挂载自己的,或者修改当前目录的重新构建新镜像
注意 启动容器后 ,无法使用有数据的挂载目录情况下 修改用户或密码 ,重新启动还是原来的用户和密码
max_connect = 10
superuser_reserved_connections = 5 #小于max_connect
super_manager_reserved_connections = 3 #小于superuser_reserved_connections
Content type
Image
Digest
sha256:ff1247de4…
Size
131.4 MB
Last updated
almost 4 years ago
docker pull haloking/kingbase:v8r3