
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Exchange, modify and aggregate messages between systems! !https://raw.githubusercontent.com/ibissource/iaf/master/frank-framework-github-banner.png
The Frank!Framework is a framework that is completely configurable through XML configurations. Each Frank!Application may contain multiple configurations, and each configuration can consist of multiple end-to-end connections which we call 's'. Configurations may be (re)loaded conditionally or individiually for optimal performance and customizability. The application may be managed and monitored through a web interface or REST API. See it in action: []
The image contains an e***y framework-instance that needs to be configured before use.
Whether using the container locally or building your own image for use on servers, refer to Filesystem information on which directories and files to mount or copy.
For a list of available tags, see [***]
To run the image, run the following command, adding environment variables and mounts as needed:
docker run --publish <hostport>:8080 [-e <name>=<value>] [-v <source>:<target>[:<options>]] --name <name> nexus.frankframework.org/frank-framework[:<tag>]
For example, to run Frank2Example on http://localhost with the latest image using Powershell on Windows:
bashdocker run --publish 80:8080 \ -e dtap.stage=LOC \ -v $pwd/example/src/main/resources:/opt/frank/resources \ -v $pwd/example/src/main/webapp/META-INF/context.xml:/usr/local/tomcat/conf/Catalina/localhost/ROOT.xml \ --name Frank2Example \ nexus.frankframework.org/frank-framework:latest
Please read the ***ations before using the image on servers, as the default setup might not be secure enough for your use.
For use on servers, you need to build your own image that includes the required configuration files. To start building your own image, start your Dockerfile with:
FROM nexus.frankframework.org/frank-framework[:<tag>]
Use COPY --chown=tomcat when copying files to ensure that tomcat can use the files.
The image contains the following directories:
| directory | description | notes |
|---|---|---|
| /opt/frank/resources | For application-wide properties, may contain files or a .jar with all files | Minimum required properties to set are instance.name and configurations.names, can also be set using environment variables |
| /opt/frank/configurations | For configurations, may contain a directory with files per configuration or a .jar containing a directory per configuration | When Configuration.xml is not located at <configurationName>/Configuration.xml, your resources should include a property configurations.<configurationName>.configurationFile containing the path to the Configuration.xml |
| /opt/frank/testtool | For Larva tests that are included in the image | |
| /opt/frank/testtool-ext | For Larva tests that are mounted from the environment | |
| /usr/local/tomcat/lib | Contains drivers and other dependencies | Contains all Framework required dependencies and drivers for supported JMS and JDBC systems |
| /usr/local/tomcat/logs | Log directory | |
| /opt/frank/secrets | Credential storage | See Secrets |
The image also contains the following files:
| file | description | notes |
|---|---|---|
| /usr/local/tomcat/conf/Catalina/localhost/ROOT.xml | mount/copy of your context.xml | Use hostname host.docker.internal to get to the host machine for local testing. Changing this file will require a new instance to be started, it cannot be reloaded |
| /usr/local/tomcat/conf/server.xml | mount/copy of your server.xml | Contains the default server.xml of Tomcat, replace to secure your application |
| /usr/local/tomcat/conf/catalina.properties | Server properties, contains default framework values | Do not replace this file, use Environment variables or append to the file, see Dockerfile for an example |
Generated log files are stored in /usr/local/tomcat/logs.
Environment variables can be used to set parameters. Environment variables have the highest precedence and override parameters set in .property files supplied by Tomcat, resources and configurations.
Environment variables can be used to replace parameters in Tomcat configuration files such as server.xml and context.xml.
Do not use environment variables for secrets!
The health and readiness of the container can be monitored by polling the /iaf/api/server/health API endpoint. This will return a HTTP statuscode of 200 if all ***s are running and a HTTP statuscode of 503 if there are ***s in a non-running state.
The images are based on Tomcat, all restrictions and ***ations that apply to Tomcat also apply to using the provided images.
Frank!Applications use HTTPS and require authentication unless dtap.stage=LOC, but the default server.xml of Tomcat is not configured for inbound HTTPS traffic and user authentication. To configure this, the server.xml file will need to be replaced by either building your own image or mounting it at runtime.
Special ***ation should be taken with secrets. As described on the https://cwiki.apache.org/confluence/display/TOMCAT/Password, secrets are stored in plain text in the container. To use secrets in your Tomcat and Frank!Application configuration, you can take the following steps:
${<secret-name>}${<secret-name>/username} and ${<secret-name>/password} respectively/opt/frank/secrets/<secret-name>/username/opt/frank/secrets/<secret-name>/passwordSee the context.xml of the test-project and corresponding Dockerfile for an example.
This image runs Tomcat as a separate user tomcat:tomcat with UID=1000 and GID=1000 instead of root. If you need to run as root, you will need to set USER root in your Dockerfile.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务