- 💚 Health check
- 🚢 Container management
- Pull the latest image from Docker Hub:
docker pull serversinc/agent- Create a
.envfile by copying the example and filling in required values:
cp .env.example .env
# Edit .env and set CORE_URL and SECRET_KEY- Run the image (example):
docker run -d -p 7567:7567 --env-file /agent/.env serversinc/agentcurl -X GET http://localhost:7567/v1/healthcurl -X GET http://localhost:7567/v1/containerscurl -X GET http://localhost:7567/v1/containers/:idPORT: Listening port for the agentSECRET_KEY: The secret key for authenticating requests to the agentCORE_URL: The URL to which the agent will send events. See.env.examplefor a full list of environment variables and defaults.
Ensure you have a agent folder in your home directory, or set the HOME environment variable to point to your Agent directory.
- Fork the repository
- Create a new branch (
git checkout -b feature) - Commit your changes (
git commit -am 'Add feature') - Push to the branch (
git push origin feature) - Create a new pull request