https://github.com/valtri/docker-jenkins-centos
Basic Jenkins node CentOS image
https://github.com/valtri/docker-jenkins-centos
Last synced: 6 months ago
JSON representation
Basic Jenkins node CentOS image
- Host: GitHub
- URL: https://github.com/valtri/docker-jenkins-centos
- Owner: valtri
- Created: 2017-08-02T21:50:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T10:51:29.000Z (over 7 years ago)
- Last Synced: 2025-04-01T10:47:30.414Z (about 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Info
Basic Jenkins node CentOS image
Installed:
* Java 8 JRE (EPEL)
* openssh server
* sudo
# Usage
In Jenkins:
* for example with *Docker Plugin*
## Simple way
Initial password is created during start, but only if */context/.ssh* directory is not found locally:
* user: **jenkins**
* password: **jenkins**
Steps:
docker pull valtri/docker-jenkins-centos
docker run -itd --name jenkins-centos valtri/docker-jenkins-centos
## Recommended way
Access using ssh keys and no password will be created.
Steps:
ssh-keygen -t rsa -f jenkins_node
mkdir -p context/.ssh
#SELinux: chcon -Rt svirt_sandbox_file_t context/
cp -p jenkins_node.pub context/.ssh/authorized_keys
docker pull valtri/docker-jenkins-centos
docker run -itd --name jenkins-centos --volume `pwd`/context:/context:ro valtri/docker-jenkins-centos
# Tags
* **7**, **latest**: CentOS 7
* **6**: CentOS 6