Giter VIP home page Giter VIP logo

jenkins's Introduction

Dockerized Jenkins

Supported tags and respective Dockerfile links

Distribution Version Tag Dockerfile
Alpine 2.141 latest, 2.141 Dockerfile
Alpine stable 2.121.3 2.121.3 Dockerfile
Alpine release candidate rc Dockerfile
Alpine stable release candidate stable-rc Dockerfile

Older tags remain but are not supported/rebuild.

Make It Short

$ docker run -d -p 80:8080 --name jenkins blacklabelops/jenkins

Passing Parameters

You can run the Jenkins solely with command line parameters!

Example:

$ docker run \
     -d -p 8090:8080 \
     --name jenkins \
	   blacklabelops/jenkins --debug=9

Staring Jenkins with custom debug level.

Example list parameters:

$ docker run --rm blacklabelops/jenkins --help

Lists jenkins plugin parameters.

Example printing Jenkins version:

$ docker run --rm blacklabelops/jenkins --version

Prints the image's Jenkins version.

Build Slaves

Build Slaves can be found here: blacklabelops/swarm

Manual

The detailed manual moved here:

jenkins's People

Contributors

bitdeli-chef avatar blacklabelops-legacy avatar steigr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jenkins's Issues

Tagging is cumbersome.

Currently each release must be done manually.

All dependencies must be fixed throughout the project. (Container, installed software etc.)

Possible solution: Bash Release script for fixing versions.

Note: Also the volume must be tagged, in order to allow concurrent jenkins instances.

Data Container not working with compose

Hi guys,

I'm kind of new into docker and especially data only containers. I noticed that if I ran your docker-compose example I noticed that the data container is not mounted. I kind of think is because the compose rebuilds the container every time and not in the right order. Any idea what's happening ?

Problem Jenkins And Nginx Example

The current Nginx example does not work with the latest Jenkins under http.

The https settings seems to be working fine.

Still trying to figure out a working example with Nginx, Jenkins and http.

need more docs on settings up swarm slaves

I got this far:

  • log into master via https (http if you didn't specify the keystore info) at port 8090
  • use the initial key found in your server log to create an admin user
  • create a swarm slave user and password
  • edit your jenkins-slave.env file (SWARM_JENKINS_USER and SWARM_JENKINS_PASSWORD) to use the user/password for the swarm slave user you just created; leave SWARM_MASTER_URL blank so that the slaves use autodiscovery to find the master via UDP
  • ctrl-c docker to stop it and do "docker-compose up" to restart it

but then the logs keep saying:

slave_1    | INFO: Retrying request
slave_1    | Aug 01, 2016 2:28:51 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
slave_1    | INFO: I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server jenkins failed to respond
slave_1    | Aug 01, 2016 2:28:51 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
slave_1    | INFO: Retrying request
slave_1    | org.apache.commons.httpclient.NoHttpResponseException: The server jenkins failed to respond
slave_1    |    at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)

but at least they don't say this any more if you didn't put that info in:
slave_1 | WARNING: Required credentials not available for BASIC <any realm>@jenkins:8080

Update Versions

Backup and restore only works for fixed versions.

If you restore from a different version of jenkins, then jenkins overwrites the whole folder, deleting restored files. (Note: Happens on container restart)

Possible solution: Installing from rpm, this way possibly the home folder does not contain binaries. This is the case with current installing from war file.

Alternative solution: New script for only backup and restore of configurations.

Support docker commands?

I've tried building my app and running docker containers from a jenkins install from docker before and ran into a few problems. Have any thought been put into your jenkins build?

Container CLI Mode

Container needs a cli-mode:

  • Cli must be extracted from war and laid inside a specific directory in Dockerfile
  • Cli must be available in PATH
  • Cli must be easily invokable through simple alias (e.b. jenkins-cli args).
  • Cli must be configurable to specific server through env variable
  • Cli must be executable with default target the local server.
  • Cli must be executable with a linked container

No plugins installed on a new Jenkins instance

We had a need to install specific version of plugins.
We followed the documentation and attempted to stand up a new jenkins using this command:

docker run --name jenkins -e "JENKINS_PLUGINS=gitlab-plugin hipchat:2.1.0 swarm" -p 8090:8080 blacklabelops/jenkins --debug=9

Jenkins came up but when I went to Jenkins UI, went to manage plugins, installed plugin I did not see any plugins installed.

I assumed that adding :version number of the plugin was the problem so I ran

docker run --name jenkins -e "JENKINS_PLUGINS=gitlab-plugin hipchat swarm" -p 8090:8080 blacklabelops/jenkins --debug=9

Even after running this command I do not see any plugins installed.

Finally I ran this command:

docker run --name jenkins -p 8090:8080 blacklabelops/jenkins --debug=9

Even in this case I don't see any plugins installed.

Can you let us know how we can specify a list of plugins and their version via command line?

Thanks

Updating Readme

Several sections inside the manual are out of date since Jenkins 2.0 or Docker 1.x.

The latest image has all the functionality from the pre-image so manual only needs to be adjusted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.