Attempts to make Drone play nicer with Docker Hub#23831
Attempts to make Drone play nicer with Docker Hub#23831
Conversation
https://github.com/gravitational/cloud-terraform/pull/1839/files#diff-3f6a82b01dffe1fec2af511f783801a51bf4a4074f74a51b0e712f29f537ea8fR75-R81 should hopefully help with this. |
|
Update -- I'm working off the https://github.com/gravitational/teleport-private/tree/walt/dockerhub-login branch. I'm currently chasing two issues:
teleport/build.assets/Dockerfile Lines 253 to 263 in 99c5002 I'm still debugging / trying to get the credentials properly plumbed through.
See https://drone.platform.teleport.sh/gravitational/teleport-private/528/11/2 for an example. |
|
I've got a cleaned up version of this PR at #23956 |
The Story so far....
dinddockersock volume. (At least all that I can find, anyway).wait-for-dockerstep that logs into dockerhub and writes the login credentials to the volumekubernetespipeline, for example) need an image in order to spawn a container to run in. So,execworkflow as per this documentlatestDrone will re-download it every time it is used. I've added a bunch ofpull: if-not-existsproperties in places that are referencing weakly-pinned images in order to get Drone to try and cache them. The Docs only say "Drone" will cache them, but it doesn't specify the scale... is it per executor, the whole cluster, or just inside one piepline? Who knows? Maybe this will help.