A lightweight docker image to run Robot Framework tests
100K+
A lightweight automatically updated and tested multiarch amd64 and arm64 Docker image to run Robot Framework tests and containing:
multiarch with support of amd64 and arm64,SBOM) changes,SBOM) attestation added using Syft,This image has:
RobotidyRobocopExample to run Robot Framework tests in your current directory:
docker run -t --rm -v $(pwd):/tests jfxs/robot-framework robot --outputdir /tests /tests/tests/RF
Example to add a Robot Framework library and run Robot Framework tests in your current directory:
docker run -t --rm -v $(pwd):/tests jfxs/robot-framework /bin/sh -c "pip install --user robotframework-faker && robot --outputdir /tests /tests/tests/RF"
This image includes a Task Robot Framework template with some useful tasks:
green. If at least one test fails, the background is red. If at least a test has a skip status and all other pass, the background is orange. Usage: task robot:badge FILE|F=<output_file_path> [DIR|D=<badge_directory>] [IMG|I=<docker_image:tag>] [PULL|P=<n|N>]
Arguments:
FILE | F Output XML results file (required)
DIR | D Generated badge directory (optional, current directory by default)
IMG | I Docker Robot Framework image to use (optional, by default {{.IMAGE_ROBOT}})
PULL | P Pull docker image (optional, by default yes)
Requirements:
- pybadges lib or docker
# Example:
docker run -t --rm -v $(pwd):/tests jfxs/robot-framework /bin/sh -c "task --taskfile /robot.yml badge FILE=/tests/reports/output.xml"
Robocop. Usage: task robot:cop DIR|D=<tests_dir> [ARG|A="cli_arguments"] [IMG|I=<docker_image:tag>] [PULL|P=<n|N>]
Arguments:
DIR | D Directory or file to format (required)
ARG | A Arguments and options (optional)
IMG | I Docker Robot Framework image to use (optional, by default {{.IMAGE_ROBOT}})
PULL | P Pull docker image (optional, by default yes)
Requirements:
- robocop or docker
# Example:
docker run -t --rm -v $(pwd):/tests jfxs/robot-framework /bin/sh -c "task --taskfile /robot.yml cop DIR=/tests/tests/RF"
Usage: task robot:mask FILE|F=<file_path> DATA|D=paswword1,password2
Arguments:
FILE | F Fix files (required)
DATA | D Data to mask separated by comma (required)
# Example:
docker run -t --rm -v $(pwd):/tests jfxs/robot-framework /bin/sh -c "task --taskfile /robot.yml mask FILE=/tests/reports/output.xml DATA=paswword1,password2"
Robotidy. Usage: task robot:tidy DIR|D=<tests_dir> [ARG|A="cli_arguments"] [IMG|I=<docker_image:tag>] [PULL|P=<n|N>]
Arguments:
DIR | D Directory or file to format (required)
ARG | A Arguments and options (optional)
IMG | I Docker Robot Framework image to use (optional, by default {{.IMAGE_ROBOT}})
PULL | P Pull docker image (optional, by default yes)
Requirements:
- robotidy or docker
# Example:
docker run -t --rm -v $(pwd):/tests jfxs/robot-framework /bin/sh -c "task --taskfile /robot.yml tidy DIR=/tests/tests/RF ARG"--check""
You can also install Task and download the robot.yml template locally. Documentation: Task templates
Docker latest tag is 7.3.2-025, 7.3, 7 and has:
| Name | Version | Type |
|---|---|---|
| curl | 8.14.1-r2 | apk |
| go-task | 3.43.3-r4 | apk |
| pip | 25.2 | python |
| robotframework | 7.3.2 | python |
| robotframework-requests | 0.9.7 | python |
| robotframework-robocop | 6.9.0 | python |
| robotframework-seleniumlibrary | 6.8.0 | python |
| robotframework-tidy | 4.18.0 | python |
| selenium | 4.38.0 | python |
Details are available on Dockerhub Overview page.
The Docker tag is defined by the Robot Framework version used and an increment to differentiate build with the same Robot Framework version:
<robot_version>-<increment>
Example: 6.0.2-001
Cosign public key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----
The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.
To verify an image:
cosign verify --key cosign.pub $IMAGE_URI
To verify and get the SBOM attestation:
cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.
Content type
Image
Digest
sha256:b6a1e8f37…
Size
54.1 MB
Last updated
9 months ago
docker pull jfxs/robot-framework