
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/trifox/docker-robot-framework
UFP Robotframework containerised with many libraries installed and a headless chrome
the following command will execute the robot tests in current folder, report is written to ./reports
docker run -v .:/opt/robotframework/tests -v .reports:/opt/robotframework/reports -ckleinhuis/ufp-robotframework
README:
This repository holds a http://docker.com image with robotframework and some useful libraries pre installed, and a [headless chrome] that can be used in the robot testing environment using the [robotframework-seleniumlibrary]
... with many utility Libraries installed, spawned from: https://github.com/ppodgorsek/docker-robot-framework
Make the docker image
sidt.sh -m service
Test The image, first start the infra stack
sidt.sh -u infra
then run the robot test against it (kinda inception testing itself by using itself)
the sidt.sh is a service paradigm read more about it https://github.com/FrontendSolutionsGmbH/ufp-sidt-template a short primer:
-u debug - starts the debug stack usually with some utility containers -b runs stack in foreground
This project consists of a Docker image containing a Robot Framework installation.
This installation also contains Chrome and the Selenium, and some more for libraries bundled with Robot Framework.
The test cases and reports should be mounted as volumes.
The robot framework comes with a bunch of preinstalled python libraries which are:
https://github.com/peterservice-rnd/robotframework-advancedlogging
robotframework-csvlibrary==3.1.1
https://franz-see.github.io/Robotframework-Database-Library/api/1.0.1/DatabaseLibrary.html
https://bulkan.github.io/robotframework-difflibrary/
https://guykisel.github.io/robotframework-faker/
https://rickypc.github.io/robotframework-imaplibrary/doc/ImapLibrary.html
https://nottyo.github.io/robotframework-jsonlibrary/JSONLibrary.html
https://github.com/jstaffans/robotframework-jsonschemalibrary
robotframework-kafkalibrary==0.0.1
http://mahartma.github.io/robotframework-mongodblibrary/de.codecentric.robot.mongodblibrary.keywords.MongodbLibrary.html
https://github.com/bulkan/robotframework-requests
robotframework-seleniumlibrary==3.1.1
https://github.com/divfor/robotframework-yamllibrary
https://github.com/asyrjasalo/RESTinstance
The docker image needs to be created using
./sidt.sh -m python2
and
./sidt.sh -m python3
use the stack.sh to bring up the testing infrastructur - after the build step before - using:
./sidt.sh -u infra
and then run the tests
./sidth.sh -u test -b
and the extensive tests testing both python2 and python3 images for their log levels v,vv and vv
./sidt.sh -u test-extensive -b
The ./deploy.sh script is used to deploy the image to the docker.hub it is build, and after succesful tests it is deployed to docker hub
A https://docs.docker.com/compose/ file defines all that is needed to run the tests in robotframework. It is started using in same folder
docker-compose up
this is an example docker-compose file that is included in this repo
dockerfileversion: '3' services: roboter_chrome: image: ckleinhuis/ufp-robotframework:latest # # shared memory size configuration # even headless chrome needs some swapping memory, this is configured here # and set to a reasonable amount if browser crashes without other reasons # checking the free memory is quite an issue # shm_size: '4gb' volumes: - ./reports:/opt/robotframework/reports - ./test:/opt/robotframework/tests
place this folder where a sub-folder 'tests' exists - containing the robot test
It is possible to define the settings of the virtual screen in which the browser is run by changing several environment variables:
SCREEN_HEIGHT (default: 1080)SCREEN_WIDTH (default: 1920)ENV ROBOT_INCLUDE_TAG (default:'')ENV ROBOT_EXCLUDE_TAG (default:'')ENV ROBOT_CRITICAL_TAG (default:'critical')ENV ROBOT_NONCRITICAL_TAG (default:'noncritical')ENV ROBOT_LOGLEVEL (default:'INFO')ENV ROBOT_OPTIONS (default:'')the log level is using v,vv,vvv for log level depth here the various depths are explained and what they do in the current configuration
Loglevel v
* lints source test files * prints information on console
Loglevel vv
* creates keyword resource documentation * creates test documentation * tidies up source test files * creates library documentaiton from bundled libraries in /reports/doc
Loglevel vvv
* system level python packages version info * beautify robot source code * system level package version info
this repo has been forked from https://github.com/ppodgorsek/docker-robot-framework
Shared Memory Size 'shm_size' in cases of heavy memory use e.g. for browser testing a reasonable high memory has to be provided
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务