Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-15107

Add command to download and run the agent in a pod

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: current_quarter
    • Component/s: plt
    • Labels:

      Description

      Write a method to build the shell script that downloads and runs the agent.

      We'll need to download the agent and start it inside of the container working directory.

      The download can be done with either curl which, for simplicity's sake, we're just going to assume comes packaged with the container image. This can be implemented similarly to the curl command for the agent}https://github.com/evergreen-ci/evergreen/blob/aa11705672c5f263e0b28046f15f217ebabeac41/model/host/hostutil.go#L89-L115.

      The agent command can be written like the agent command for hosts, with a few differences:

      • Instead of running in "host" mode, it should run in "pod mode".
      • It should pass the pod ID and secret.
      • The provider can be omitted.
      • For now, the working directory can be hard-coded as /data/mci.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jessica.feng Jessica Feng (Inactive)
              Reporter:
              kimberly.tao Kim Tao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: