Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.85 KB

README.md

File metadata and controls

55 lines (33 loc) · 1.85 KB

docker-jenkins

Sets up a container with jenkins installed listening on port 8080.

Usage

To run the container, do the following:

docker run -d -P aespinosa/jenkins

docker ps
CONTAINER ID        IMAGE                       COMMAND                CREATED             STATUS              PORTS                     NAMES
1131d37c38b1        aespinosa/jenkins:latest    java -jar /opt/jenki   12 seconds ago      Up 12 seconds       0.0.0.0:49153->8080/tcp   drunk_fermi

Your jenkins instance is now available by going to http://localhost:49153 .

Persistent Configuration

By default, JENKINS_HOME is set to /jenkins. The best way to persist or import configuration is to have a separate data volume for /jenkins. Below are a few references on data volumes.

Building

To build the image, simply invoke

docker build github.com/aespinosa/docker-jenkins

A prebuilt container is also available in the docker index

docker pull aespinosa/jenkins

Author

LICENSE

Copyright 2013 Allan Espinosa

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.