Reputation: 3690
Are the build artifacts or test results from a docker multi-stage build retrievable(be made available on the host machine on which the docker build container has executed).
If they are, how to achieve this?
Upvotes: 2
Views: 867
Reputation: 1210
Yes, but it depends on where you have written the build artifacts to disk inside the container. That location needs to be mounted in when running the docker command from the host machine using the -v or --mount flag
Once mounted, writing to the mounted folder inside the container, makes the files available in the corresponding folder on the host machine.
Word of warning if running as root inside your container, the permissions on your generated files may be too strict for your build service to remove! Use the --user flag to ease this.
Upvotes: 1