{"id":29016372,"url":"https://github.com/think-cube/dockerjenkinsagentnode","last_synced_at":"2026-04-06T06:01:40.870Z","repository":{"id":301224530,"uuid":"1008546320","full_name":"Think-Cube/DockerJenkinsAgentNode","owner":"Think-Cube","description":"Lightweight Docker image for a Jenkins build agent with Node.js support. Ideal for CI/CD pipelines using Jenkins","archived":false,"fork":false,"pushed_at":"2025-06-25T19:26:23.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T19:37:50.504Z","etag":null,"topics":["docker","jenkins","tooling"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Think-Cube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-25T17:58:23.000Z","updated_at":"2025-06-25T19:26:26.000Z","dependencies_parsed_at":"2025-06-25T19:49:34.636Z","dependency_job_id":null,"html_url":"https://github.com/Think-Cube/DockerJenkinsAgentNode","commit_stats":null,"previous_names":["think-cube/dockerjenkinsagentnode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Think-Cube/DockerJenkinsAgentNode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Think-Cube%2FDockerJenkinsAgentNode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Think-Cube%2FDockerJenkinsAgentNode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Think-Cube%2FDockerJenkinsAgentNode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Think-Cube%2FDockerJenkinsAgentNode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Think-Cube","download_url":"https://codeload.github.com/Think-Cube/DockerJenkinsAgentNode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Think-Cube%2FDockerJenkinsAgentNode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270716747,"owners_count":24633248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","jenkins","tooling"],"created_at":"2025-06-25T22:08:10.795Z","updated_at":"2026-04-06T06:01:40.771Z","avatar_url":"https://github.com/Think-Cube.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Jenkins Agent Node\n\nA lightweight and extensible Docker image for running a Jenkins build agent over SSH. It creates a dedicated non-root user, sets up a secure SSH server, and is ready to be used as an SSH agent in Jenkins pipelines.\n\n## Features\n\n- Creates dedicated jenkins user (with customizable UID/GID)\n- Installs and configures openssh-server\n- Allows injection of SSH public keys via environment variables or container arguments\n- Automatically generates SSH host keys if missing\n- Secure by default: disables root login and password authentication\n- Easily extensible with tools like Node.js, npm, or Yarn\n\n## Getting Started\n\n#### Build the Image\n\n```bash\ndocker build -t jenkins-agent-node .\n```\n\n#### Run the Container\nUsing environment variable:\n\n```bash\ndocker run -d \\\n  -e JENKINS_AGENT_SSH_PUBKEY=\"ssh-rsa AAAA...\" \\\n  -p 2222:22 \\\n  jenkins-agent-node\n```\n\nOr pass the SSH public key as a parameter:  \n\n```bash\ndocker run -d \\\n  -p 2222:22 \\\n  jenkins-agent-node \"ssh-rsa AAAA...\"\n```\n\n## Connect from Jenkins\n\nIn Jenkins:\n\n- Host: IP or hostname of your Docker host\n- Port: `2222` (or the mapped SSH port)\n- Credentials: Use a matching SSH private key\n- Remote root directory: `/home/jenkins`\n\n## Environment Variables\n\n| Variable                   | Description                                  |\n|----------------------------|----------------------------------------------|\n| `JENKINS_AGENT_SSH_PUBKEY` | SSH public key to authorize in the container |\n| `JENKINS_AGENT_HOME`       | Home directory for the Jenkins user          |\n| `user`, `group`            | Username and group name (default: `jenkins`) |\n| `uid`, `gid`               | UID and GID of the user (default: `1000`)    |\n\n## License\n\nThis project is open source and available under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthink-cube%2Fdockerjenkinsagentnode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthink-cube%2Fdockerjenkinsagentnode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthink-cube%2Fdockerjenkinsagentnode/lists"}