保存来自Websphere(安装为Docker)的配置(jdbc-provider、jdbc-connection、mail)。

huangapple go评论54阅读模式
英文:

Save config (jdbc-provider, jdbc-connection, mail) from Websphere (installed as Docker)

问题

基础:
我在Ubuntu上将Websphere安装为Docker,并手动配置了JDBC设置。

问题:
我如何导出这个Websphere配置,以便稍后在创建Docker容器时交接给他人?

我尝试了很多方法,但一直没有取得任何进展。

英文:

Basis:
I installed Websphere as Docker on Ubuntu and configured the JDBC settings manually.

Question:
How do I export this Websphere configuration to hand it over later when creating the Docker container?

I've tried many things, but haven't gotten anywhere yet

答案1

得分: 1

你可以使用基于属性文件的配置作为保存(导出)和稍后还原(导入)WebSphere配置的方法。

在构建Docker容器映像时,这非常有效,你将看到WebSphere传统Docker示例使用这种技术。

正如你所指出的,它也可以用于Docker/容器以外的用例。

文档中有一些示例,包括提取单元属性:

AdminTask.extractConfigProperties('[-propertiesFileName 
 ConfigProperties_cell.props]')

以及提取服务器属性:

AdminTask.extractConfigProperties('[-propertiesFileName ConfigProperties_server1.props
 -configData Server=server1]')

请注意,在WebSphere传统Docker项目中有一些工具:https://github.com/WASdev/ci.docker.websphere-traditional,可以使这种类型的功能更容易在Docker构建中使用(例如,你只需将属性文件放在特定位置,而不必自己编写和调用wsadmin命令),因此值得详细阅读文档。

英文:

You can use properties file-based configuration as a way to save (export) and then later restore (import) a WebSphere configuration.

This works well when building Docker container images, and you'll see the Websphere traditional Docker samples using this technique.

As you noted, though, it can be used outside of Docker/container use cases as well.

There are several examples in the doc above including extracting cell properties:

AdminTask.extractConfigProperties('[-propertiesFileName 
 ConfigProperties_cell.props]')

and extracting server properties

AdminTask.extractConfigProperties('[-propertiesFileName ConfigProperties_server1.props
 -configData Server=server1]')

Note there is some tooling in the WebSphere traditional Docker project:
https://github.com/WASdev/ci.docker.websphere-traditional to make this type of function easier to use within a Docker build (e.g. you just place the properties file in a certain location instead of having to write and call the wsadmin command yourself), so it is worth reading through the doc.

huangapple
  • 本文由 发表于 2023年6月19日 13:11:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/76503761.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定