在 OpenAM-OpenDJ 的 Docker 化过程中面临一个关键问题
如果 OpenAM 容器崩溃或失败,我们被迫再次重新部署 OpenAM,它将无法连接到旧版 OpenDJ,我们需要再次重置 OpenDJ 才能使其正常运行
如果有任何可能的方法来解决这个问题
在 docker 中创建了配置文件夹和 tomcat web-apps 文件夹作为卷,但是如果我们强制使用旧卷重新创建新容器,它会再次进入全新安装。
有什么办法可以解决这个问题吗?
最佳答案
已解决问题。
由于无法将配置文件夹目录挂载为卷,我们遇到了此问题。
即,在 webapps 文件夹中部署 openam.war 时,它将在/root/openam 位置创建配置详细信息。
请挂载该卷,然后服务器将使用现有数据重新启动。
请查看openam配置
"networks":
"network":
"external":
"name": "appliance"
"services":
"container_openam":
"build":
"context": "identity-openam"
"dockerfile": "Dockerfile"
"container_name": "identity-openam"
"image": "identity-openam:latest"
"networks":
- "network"
"ports":
- "8080:8080"
"restart": "always"
"volumes":
- "openam_configuration:/root/sso"
- "openam_core:/root/.openamcfg"
"container_opendj":
"build":
"args":
- "PORT=1389"
- "LDAPS_PORT=1636"
- "BASE_DN=dc=ds,dc=test,dc=com"
- "ROOT_USER_DN=cn=Directory Manager"
- "ROOT_PASSWORD=rdddE"
"context": "identity-persistence-opendj-ldap"
"dockerfile": "Dockerfile"
"container_name": "identity-persistence-opendj-ldap"
"image": "identity-persistence-opendj-ldap:latest"
"networks":
- "network"
"ports":
- "1389:1389"
- "4444:4444"
"restart": "always"
"volumes":
- "storage:/opt/opendj/db"
"version": "3.4"
"volumes":
"openam_configuration":
"name": "openam_configuration"
"openam_core":
"name": "openam_core"
"storage":
"name": "identity-icampp-opendj-openam"
关于java - OpenAM OpenDJ dockerization 问题 : Fails to redeploy using old data source,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53099550/