This guide explains how to set up a Buildkite proxy agent manually. If you want to set it up automatically, using a Docker container, see here.
- Install and configure a Buildkite agent on a machine that has network visibility to your Orka environment. For more information about how to install and configure a Buildkite agent, see the instructions provided by Buildkite.
- Copy the provided scripts to the agent machine: base.sh, bootstrap.sh, run.sh.
Note: All scripts should be in the same directory. For example, you can add them to
/usr/local/var/buildkite-agent/
. Overwrite the existingbootstrap.sh
file if asked. - Make the scripts executable by running
chmod +x path_to_script
in the command line. - Copy the provided pre-exit hook to the agent machine. You should add it to the agent hooks directory. It can be found in the
buildkite-agent.cfg
file under thehooks-path
property. The location of thebuildkite-agent.cfg
varies depending on your OS. For more information, see your platform's installation instructions. - Make the hook executable by running
chmod +x path_to_hook
in the command line. - Verify jq is installed. For more information, see the jq page.
- Verify that the machine has network visibility to the Orka environment. If the machine is part of the Orka environment, skip this step. You can use any VPN client to connect to the Orka environment. For more information, see your Orka IP Plan.
- Verify that the private SSH key for connecting to the ephemeral agent is present on the proxy machine and added to the ssh-agent. This key was created earlier during the Orka base image setup.
- Verify that the private SSH keys for the code repositories used by the build job are present on the proxy machine and added to the ssh-agent.
Note For more information about using multiple SSH keys, see here.