Docker build TasksA VSTS build task that helps you build and release Docker containers. It is free and open source. This build task offers special treatment to SSH connected services, such as the Azure Container Services. How to use itThe build task works best if you follow a simple convention. You should:
We do not offer a run command. Ideally, you should have work done during the build, where you build your project and your Dockerfile, and then push it to the Docker Hub. The pushed image is your main artifact. Then, you will have a release prepared. It will only use the pushed image, from the Docker Hub, to compose new services, maybe with several images. The environmentThe For the compose action, the same rule applies, it will use The default is always Debug. Building the imageYou will need to supply the following arguments:
Building this image will create an artifact named Pushing the imageYou only need to inform the image name. Remember to use an name that you own on the Docker hub. The build agent is expected to be logged on the Docker Hub. For more info on the build agent see bellow on the "Build Agent" section. Composing the agentYou will need to supply the following arguments:
You most likely want to supply the SSH information, otherwise the containers will be created on the build server. This is specially usefull for use with the Azure Container Service. The SSH key should be a private key, joined in one line, and, where the line break would be, add a textual Debugging errorsIf you set the variable Reporting issuesCheck out the Github issues directly. Build agentYou can use any build agent that is logged on the Docker Hub. We suggest you run the agent as a container using giggio/vsts-agent as a base image for the agent. |