C/C++test can be deployed in a Docker container to enable seamless integration with modern development workflows and CI/CD pipelines.
You can download a ready to use C/C++test container image from Docker Hub: https://hub.docker.com/r/parasoft/cpptest. The container image includes C/C++test, C/C++ build tools and common utilities. See the documentation at Docker Hub for deployment and customization instructions.
It is recommended to use C/C++test container image from Docker Hub: https://hub.docker.com/r/parasoft/cpptest. Follow the steps below if you need to build a custom Docker container image, for example, if you have your own container base image. |
To build a Docker container image that includes C/C++test:
cpptest subfolder will be created.cpptest/integration/docker/Dockerfile to specify the tools you want to include in the container image.Add the license settings and other configuration settings to the cpptest/cpptestcli.properties file.
You must configure a network license to run C/C++test in a Docker container. The local license is not supported. See Setting the License for details. |
Run the following command in the cpptest directory to build the image:
docker build -t cpptest:latest -f 'integration/docker/Dockerfile' . |
The image will include runnable C/C++test and other tools you specified in the Dockerfile.
Once you built the Docker container image that includes C/C++test, you can utilize all of C/C++test's capabilities available from the command line interface:
docker run --rm cpptest:latest cpptestcli -help |
See the documentation at Docker Hub for further C/C++test deployment and customization instructions: https://hub.docker.com/r/parasoft/cpptest.
See the documentation for Dockerfile: https://docs.docker.com/engine/reference/builder/.