Jenkins inbound agent that connects to jenkins with username and password with docker-cli command
424
Here's a comprehensive Docker Hub documentation for your Jenkins Swarm Agent image:
A Docker image for running Jenkins agents using the Swarm plugin and based on docker-cli for seamless Docker support.
To deploy a Jenkins agent using this image, you can use a docker-compose.yml file or run it directly with the docker run command.
version: '3.8'
services:
jenkins-agent:
image: cloud4me/jenkins-inbound-agent-docker-cli:latest
environment:
- URL=https://myjenkins.ir
- USERNAME=<jenkins-server-username>
- PASSWORD=<jenkins-server-password>
- NAME=swarm-agent
- USE_WEB_SOCKET=true
- WORK_DIR=/home/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
docker rundocker run -d \
--name jenkins-agent \
--env URL=https://myjenkins.ir \
--env USERNAME=<jenkins-server-username> \
--env PASSWORD=<jenkins-server-password> \
--env NAME=swarm-agent \
--env USE_WEB_SOCKET=true \
-v /var/run/docker.sock:/var/run/docker.sock \
cloud4me/jenkins-inbound-agent-docker-cli:latest
Customize your agent configuration using the following environment variables:
| Variable | Description | Required | Default |
|---|---|---|---|
URL | The URL of your Jenkins server. | Yes | |
USERNAME | Jenkins server username. | Yes | |
PASSWORD | Jenkins server password or API token. | Yes | |
NAME | The name of the agent. | No | swarm-agent |
USE_WEB_SOCKET | Enables WebSocket for agent communication. (true or false) | No | false |
WORK_DIR | Working directory inside the container. | No | /home/agent |
MODE | Mode of the agent. (normal or exclusive) | No | normal |
PROMETHEUS_PORT | Enables Prometheus metrics endpoint at the specified port. | No | Disabled |
... | Check Jenkins Plugin Swarm | ... | ... |
The following volumes are typically required:
| Volume | Purpose |
|---|---|
/var/run/docker.sock | Enables Docker commands within the agent. |
| Tag | Description |
|---|---|
latest | The most recent stable version. |
Deploying this agent is ideal for builds that require Docker CLI operations, such as container builds or running tests in isolated environments.
For issues, suggestions, or contributions, please visit our Cloud4me (replace with your actual link if needed).
This document can serve as the official Docker Hub description for your image, making it clear and user-friendly for potential users!
Content type
Image
Digest
sha256:d59f1d5ca…
Size
210.5 MB
Last updated
almost 2 years ago
docker pull cloud4me/jenkins-inbound-agent-docker-cli