Problem
It is not currently possible to run docker in our build scripts.
This would facilitate:
- Using tools via containers instead of installing into the workspace environment.
- Running unit tests and system tests inside containers for container-based samples such as those for Cloud Run or GAE Flex.
Solution
The trampoline runnings our testing containers with the necessary flags for docker-in-docker, so the blocker is adding the docker client to our container images.
This can be done relatively simply. For example, if we wanted to use Docker version 17.12 (old, but consistent with how cloud-sdk-docker container:
FROM docker:17.12.0-ce as static-docker-source
# Later, inside our existing container stage:
COPY --from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker
The latest stable docker binary in the official docker image is 48.4 MB.
Problem
It is not currently possible to run docker in our build scripts.
This would facilitate:
Solution
The trampoline runnings our testing containers with the necessary flags for docker-in-docker, so the blocker is adding the docker client to our container images.
This can be done relatively simply. For example, if we wanted to use Docker version 17.12 (old, but consistent with how cloud-sdk-docker container:
The latest stable docker binary in the official docker image is 48.4 MB.