Skip to content

Sidecar containers for docker agents #84

@arvindsv

Description

@arvindsv

This might not be the right place for it (should it be part of docker-swarm elastic agents or k8s maybe?). However, it will do for now.

The idea I want to discuss is the same as the title: Have a docker image which consists of the GoCD Agent. Use --volumes-from to bring that into a user-specified docker image which doesn't have the GoCD agent at all, and run it from there.

The obvious benefit is that images don't need to be built/rebuilt with the GoCD agent in it. So, users can use whatever they already have, which might be based on scratch or compliant with their security protocols, etc.

All of the elastic agent plugins which use docker containers will need to change to allow this. They'll need to be aware of the sidecar container too.

@ketan says: "We'd likely need to setup some bootstrapper to change dir to the actual container before running the agent (which sits on the sidecar container). That way the --volumes-from can remain mounted read-only, and more importantly, pristine. It should be possible to publish just a sidecar image with the jre+golang bootstrapper for musl and glibc."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions