You can add external tools and applications to IncrediBuild image, by creating a new image that will integrate the original IncrediBuild image with additional instructions for the external tools. When a container will be launched based on the new image, it will contain an IncrediBuild Agent together with the tools you added.
To add external tools to IncrediBuild container, you need to create a new Dockerfile that will be based on IncrediBuild image. Then, you need to add to this Dockerfile the instruction layers that will import the tools you want to include in the container. After you integrated the additional instructions with IncrediBuild image in the new Dockerfile, you build it to create a new image. Then, you run the new image to launch a container, which will contain the settings of all the instructions that are specified in the image.
Note: Nano Server Core operating system cannot function as the base operating system for IncrediBuild image, since it does not support 32-bit applications. Therefore, you cannot integrate this operating system with IncrediBuild image or use instructions that are based on it for running IncrediBuild Docker containers.
> To integrate an external tool with IncrediBuild image:
Create a new empty Dockerfile.
Use the Docker
FROM
instruction, to add IncrediBuild image to the Dockerfile.
For example:Code Block FROM: incredibuild/9.5.0
Add to the Dockerfile the required instructions for importing the additional tool to the image.
Note: You should take into consideration that the order of the instructions you enter into the Dockerfile is significant, since the Docker daemon runs the instructions one after the other, committing the result of each instruction to the following image, if necessary. For more information on building a Dockerfile, see: https://docs.docker.com/engine/reference/builder/
For example:Code Block FROM: incredibuild/9.5.0 RUN mkdir C:\\BuildToolsWORKDIR C:\\BuildToolsCOPY C:\\Host\\BuildToolsDirectory # (Import build tools and necessary binaries) …
Build a Docker image from the new Dockerfile using the
docker build
command.
Note: For more information on the docker build command, see:
https://docs.docker.com/engine/reference/commandline/build/Run a container based on the new image, using the
docker run
command with the required IncrediBuild options.
The new launched container will include IncrediBuild containerized Agent with the settings of another image.
...