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.