原 【DB宝20】在Docker中分分钟即可拥有OGG Director环境
Tags: 原创Docker小麦苗OGG监控Director
Oracle GoldenGate Director可以简化GoldenGate的监控和管理,可以通过图形界面或者web浏览器方便快捷的维护整个环境中的GoldenGate组件。OGG Director是部署在Oracle的中间件Weblogic Server上的Web应用,OGG Director可以安装在任何机器上,可以管理远程的OGG实例,远程的OGG实例不需要做任何的额外操作。
一、从Docker Hub或阿里云下载小麦苗上传的镜像文件
- 小麦苗的Docker Hub的地址:https://hub.docker.com/u/lhrbest
- OGG Director的地址:https://hub.docker.com/r/lhrbest/lhroggdirector
1 2 3 4 5 | # 下载镜像 docker pull registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector:2.0 # 打tag docker tag registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector:2.0 lhrbest/lhroggdirector:2.0 |
执行过程:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | [root@docker36 ~]# docker search lhrogg NAME DESCRIPTION STARS OFFICIAL AUTOMATED lhrbest/lhroggdirector 0 [root@docker36 ~]# [root@docker36 ~]# docker pull registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector:2.0 2.0: Pulling from lhrbest/lhroggdirector 5ff999edc5fc: Already exists 5ff4a6691229: Pull complete fe95c761b383: Pull complete Digest: sha256:a851a290e43aeb5f7bf7631a16c9d021841fe9256511018a96dbd4227973bbdd Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector:2.0 registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector:2.0 [root@docker36 ~]# docker tag registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector:2.0 lhrbest/lhroggdirector:2.0 [root@docker36 ~]# docker images | grep lhrogg lhrbest/lhroggdirector 2.0 12716be53680 2 hours ago 6.2GB registry.cn-hangzhou.aliyuncs.com/lhrbest/lhroggdirector 2.0 12716be53680 2 hours ago 6.2GB |
二、创建容器并启动OGG Director
用到的命令:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # 创建容器 docker run -d --name lhroggdirector -h lhroggdirector \ -p 230:22 -p 7001-7050:7001-7050 \ --privileged=true \ lhrbest/lhroggdirector:2.0 /usr/sbin/init # 进入容器 docker exec -it lhroggdirector bash # 启动数据库 systemctl start mysql # 启动weblogic nohup /u01/ogg/Oracle/GG_Directorgg-director/domain/startWebLogic.sh & # 网页登陆 http://192.168.1.36:7001/acon/ admin/admin # 客户端设置 /u01/ogg/Oracle/GoldenGateDirector/bin/run-admin.sh |