Installing and configuring Docker
Docker is a full development platform for creating containerized applications. Instead of reading through the system requirements list, you can now deploy the Docker containers on any computer and get started with testing. You can install and configure Docker on the same system where Test Integrations and APIs is running.
Before you begin
You must have completed the tasks in Creating and running a stub. You must use the stub that you created in that task.
You must learn about testing with Docker before you start this task. See Testing with Docker.
Procedure
- You must prepare your system to use Docker. See Preparing to use Docker.
- Install Docker.
What to do next
You must return to Test Integrations and APIs and configure the pass-through behavior of the stub. See Configuring the pass-through behavior of the stub.
Configuring the pass-through behavior of the stub
You must configure the pass-through behavior of the stub. By configuring the pass-through behavior, you can enable the stub to determine whether it can handle a received request if it is matching or, when possible, send the traffic to the real system that is, if the received request does not match.
Procedure
- Open the Pass-Through window on the Properties tab of the Stub Editor.
- Enable the stub to use pass-through action.
- Save the stub.
What to do next
You must publish the stubs to a Dockerfile. See Publishing the stub to Docker.
Publishing the stub to Docker
You can publish stubs that are created in Test Integrations and APIs to a Dockerfile and build context if the stub is based on a supported transport.
You have published stubs to a Dockerfile.
You must build a Docker image of the published stub. See Building a Docker image of the stub.
Building a Docker image of the stub
You will learn how to build a Docker image of the stub from the files in the output directory.
You have built a Docker image of the published stub.
You must run the published stub that is in a Docker container. See Running the stub in a Docker container.
Running the stub in a Docker container
You have run the stub in a Docker container.
You must verify if the stub running the in the Docker container is called by the client you used, in this example it is the Add Numbers client. See Verifying that the Add Numbers client is calling the stub.
Verifying that the Add Numbers client is calling the stub
You must have successfully completed running the stubs in a Docker container.
You have verified that the Add Numbers client is calling the stub running in the Docker container.
You must stop the running stub and remove the Docker container. See Stopping the stub and remove the Docker container.
Stopping the stub and remove the Docker container
You have stopped the stub running in the Docker container and also removed the Docker container.
You can run the stub in Docker containers on a private or public cloud. See Running the stub in Docker containers on private or public cloud.
Running the stub in Docker containers on private or public cloud
You can also run the stub in Docker containers on a private cloud or public cloud. After you configure Docker on cloud, you can use publish and run the stubs in the Docker cloud.
You must have set up and configured Docker on a public or private cloud. For details, see Introducing Docker Cloud.
- Configure the stub to connect to the services that are running in the enterprise and the stub is running on the public cloud. For details, see Configuring stubs to connect to Test Virtualization Control Panel and the HTTP proxy.
- Publish the stub to the Docker cloud following the steps in Publishing the stub to Docker.
- Run the stub in the Docker cloud following the steps in Running the stub in a Docker container.
- Verified that the Add Numbers client is calling the stub running in the Docker cloud following the steps in Verifying that the Add Numbers client is calling the stub.
You have configured a Docker cloud and published and run a stub in the Docker cloud.
For more information about working with stubs in Docker, use the following resources:
- For help with using Docker, see Docker documentation.
- For details about how to publish stubs to Docker, see Publishing stubs.
- For details about how to run stubs in a Docker container and the various options that you can use with the docker run command when you run an image that contains published stubs, see Running stubs in a Docker container.
- For help with using Docker, see Query Docker container logs.
- For troubleshooting tips, see Troubleshooting stubs.










