Often you want to have a closer look at what happened within your pipelines.
This is useful for debugging purposes and having a closer look at what happened during your build.
As wercker currently supports Docker containers, introspection is done via the Docker command.
NOTE: To use this feature on local builds, you’ll need to use the –commit flag to save a copy of your build.
Assuming you have built a container locally or have pulled a build artifact as container you can run the following command to inspect your container:
docker run -it --rm build-<BUILD-ID> /bin/bash
This gives you a prompt inside the container. Now you can jump into the pipelinedirectory and have a look at the contents of your build pipeline.
After you’ve run the container you can retrieve it’s container-id by running docker ps -a. You can then stop the container:
docker stop <CONTAINER-ID>
Note that containers take up storage on your local machine and you want to clean (delete) these from time to time.