This Dockerfile creates a container based on Node.js Alpine Linux, specifically version 21.6.2-alpine3.18, with the XUnit Viewer installed globally. XUnit Viewer is a tool for visualizing XUnit test results.
To use this Docker container, you'll need Docker installed on your machine. Once installed, you can build and run this container to keep it running indefinitely, making it ideal for continuous integration environments or as part of a larger application stack.
- Docker
Clone this repository and navigate to the directory containing the Dockerfile. Build the Docker image using:
docker build -t xunit-viewer:latest .
To run the container, use:
docker run -d xunit-viewer:latest
The container will start and execute the command to sleep indefinitely. This setup is useful for keeping the container running while using docker exec
to interact with it as needed.
Once the container is running, you can execute XUnit Viewer commands within the container. For example, to generate a report:
docker cp $file_to_convert_name $container_id:/app/$random_dir
docker exec -it xunit-viewer sh -c "xunit-viewer -r $file_to_convert_name -o $filename.html"
docker cp $container_id:/app/$filename.html .
Replace <container_id>
with your container's ID, and adjust the paths as necessary.
- Node.js - The runtime environment
- XUnit Viewer - The tool for visualizing XUnit test results
- Your Name
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the creators of Node.js and XUnit Viewer for their fantastic tools.
This README.md template provides a basic overview, instructions for building and running the Docker container, and how to use it for XUnit Viewer. Modify the `**Your Name**` and any specific paths or commands according to your project's requirements.