I have a build which produces a roofs file system which I need to boot for additional configuration.
To boot the rootfs I use docker and then SSH to it for configuration.
To access docker inside drone docker I use the following configuration:
privileged: true network_mode: host volumes: - /usr/bin/docker:/usr/bin/docker - /var/run/docker.sock:/var/run/docker.sock
Then with docker I import rootfs, run /sbin/init, wait for SSH, run few SSH commands, stop container.
It works great, but I would like to know if it is possible to get drone help for that?
- service which can use rootfs from previous steps
- same docker network as other steps
- Automatic cleanup of the service docker container and image