Robot Framework docker image based on Python Hardened Image
663
A hardened, multi-platform Docker image for running Robot Framework test automation across x64 and ARM architectures (including Apple Silicon). This image provides a secure, portable environment for test execution with built-in support for performance testing tools.
docker run --rm -v $(pwd):/robot malovec/robot-runner:latest tests/suite.robot
docker run --rm -ti -e CMD=bash malovec/robot-runner:latest
Python Libraries:
System Tools:
docker run --rm \
-v $(pwd):/robot \
malovec/robot-runner:latest \
--outputdir results tests/
docker run --rm \
-v $(pwd):/robot \
malovec/robot-runner:latest \
--variable BROWSER:chrome \
--suite smoke_tests tests/suite.robot
docker run --rm \
-v $(pwd):/robot \
-e CMD=python \
malovec/robot-runner:latest \
my_script.py
# Mount current directory and specific output directory
docker run --rm \
-v $(pwd)/tests:/robot/tests \
-v $(pwd)/results:/robot/results \
malovec/robot-runner:latest \
--outputdir /robot/results /robot/tests
docker run --rm \
-v $(pwd):/robot \
-e PYTHONPATH=/robot/lib \
-e ROBOT_OPTIONS="--loglevel DEBUG" \
malovec/robot-runner:latest
version: '3.8'
services:
robot-tests:
image: malovec/robot-runner:latest
volumes:
- ./tests:/robot/tests
- ./results:/robot/results
command: --outputdir /robot/results /robot/tests/smoke.robot
# Build for both x64 and ARM
docker buildx build --platform linux/amd64,linux/arm64 \
-t malovec/robot-runner:latest \
--push .
# Build with specific Python version
docker build --build-arg DHI_PYTHON_BUILD_TAG=3.11-alpine3.22-dev \
-t my-robot-runner:custom .
PYTHONDONTWRITEBYTECODE=1)The image uses a structured approach for dependencies:
requirements/
āāā apk.in # Alpine Linux packages
āāā npm.in # Node.js packages
āāā python.in # Python packages
This project is open source. Please check the respective licenses for included tools:
Built with ā¤ļø for the Robot Framework community
Content type
Image
Digest
sha256:5ac7bb297ā¦
Size
205.1 MB
Last updated
about 1 month ago
docker pull malovec/robot-runner