https://github.com/pascalgrimaud/docker-jenkins
Jenkins container
https://github.com/pascalgrimaud/docker-jenkins
Last synced: about 1 year ago
JSON representation
Jenkins container
- Host: GitHub
- URL: https://github.com/pascalgrimaud/docker-jenkins
- Owner: pascalgrimaud
- License: mit
- Created: 2015-05-16T18:15:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T20:34:08.000Z (almost 11 years ago)
- Last Synced: 2024-10-05T19:22:59.104Z (over 1 year ago)
- Language: Shell
- Size: 203 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[]
(https://jenkins-ci.org/)
[]
(https://circleci.com/gh/pascalgrimaud/docker-jenkins)
# Information
The base docker image :
* [pascalgrimaud/ubuntu](https://registry.hub.docker.com/u/pascalgrimaud/ubuntu/)
The GitHub project :
* [pascalgrimaud/docker-jenkins](https://github.com/pascalgrimaud/docker-jenkins/)
What are installed in this container :
* oracle-java8
* git
* subversion
* ant 1.9.5
* maven 3.3.3
# Installation
You can clone this project and build with docker command :
```
git clone https://github.com/pascalgrimaud/docker-jenkins.git
cd docker-jenkins
docker build -t pascalgrimaud/jenkins .
```
You can build directly from the [GitHub project](https://github.com/pascalgrimaud/docker-jenkins/) :
```
docker build -t pascalgrimaud/jenkins github.com/pascalgrimaud/docker-jenkins.git
```
# Usage
Quick start with binding to port 8080 :
```
docker run -d -p 8080:8080 pascalgrimaud/jenkins
```
# Usage with volumes
Start and mount a volume for all jenkins config at ~/volumes/jenkins/jenkins_home :
```
docker run -d -v ~/volumes/jenkins/jenkins_home:/opt/jenkins/jenkins_home \
-p 8080:8080 pascalgrimaud/jenkins
```
# Maven and settings.xml
The `settings.xml` is added to the container at the path `/root/.m2/settings.xml`
You can modify this file if you are behind a proxy for example.
I don't want the `.m2` to be inside the container, so I put in `settings.xml` :
```
/opt/jenkins/jenkins_home/.m2
```