Skip to content

Ensure agent profile is executed in agent container setup #3310

Open
@portante

Description

@portante

If we wanted to...we could set /opt/pbench-agent/profile as the entrypoint for the container, so that it is run automagically when the container is invoked. If we then tweaked that script to, as its last action, run ${@}, any command line provided to the container invocation would then be run in that environment.

That would remove the need for this step, and it would happen seamlessly and automatically for all uses of the container (unless someone overrode the entrypoint), which seems like a really useful idea, given the purpose of this container.

Thoughts? (If we didn't want to disturb /opt/pbench-agent/profile itself, we could wrap it in another script (a la the jenkins/runner) and point the entrypoint at that.)

Originally posted by @webbnh in #3259 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgentContainerizationOf and relating to the process of setting up and maintaining container imagesenhancement

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions