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) 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:
- curl and an Internet connection (shields.io service)
# 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 ARG=check 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.5-005, 7.5, 7.
The complete software bill of materials (SBOM) of each published image, with its known vulnerabilities,
is collected in the sbom-docker repository, under the
component docker-robot-framework.
Dockerhub Overview page has the details of the last published image.
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:dfe3257ae…
Size
65.7 MB
Last updated
about 19 hours ago
docker pull jfxs/robot-framework