This is an example of using the a custom agent with hooks in your environment
The example of this image is automatically build and pushed to Docker Hub here with every tag v*.* that is on the main branch.
- clone the repository
git clone https://github.com/munnep/terraform_custom_agent.git
- Go into the directory
cd terraform_custom_agent/
- Make sure the hook files have the execution set
chmod +x hooks/
- Create the agent
docker build -t custom-agent .
- make sure the agent is being used
Replicated environment:
replicatedctl app-config set custom_agent_image_tag --value "custom-agent:latest"
FDO environment:
TFE_RUN_PIPELINE_IMAGE: "custom-agent:latest"
- Restart TFE application to make this changes permanent
Replicated environment:
replicatedctl app stop
replicatedctl app start
FDO environment:
docker compose down
docker compose up --detach