GithubHelp home page GithubHelp logo

foxylion / docker-jenkins Goto Github PK

View Code? Open in Web Editor NEW
76.0 76.0 43.0 93 KB

Jenkins 2 in Docker, with pre-installed Docker slaves and Docker worklow plugin support.

Home Page: https://hub.docker.com/r/foxylion/jenkins/

License: Apache License 2.0

Makefile 4.78% Groovy 10.52% Python 42.94% Shell 5.68% Dockerfile 36.08%
docker docker-image jenkins jenkins-master jenkins-slave

docker-jenkins's People

Contributors

foxylion avatar s4s0l 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

Watchers

 avatar  avatar

docker-jenkins's Issues

SSH agent docker could not expose its host "resource" to the Jenkins master

I bring up a slave via ssh-agent docker and setup some jobs running on it. But the problem is the job running on this docker slave is isolated within the docker container, is there a good approach to expose the host resouce(the libs commands fs) to this jenkins slave running by ssh docker agent?

BTW, I source your example that running docker to mount the docker socket file into agent container, what is the reason you did this?

I'm unable to replicate your master image, or make yours work.

Thanks for putting this together, it's an incredible resource! But...

I started off trying to set up my own images riff'ing off your your example, but could not get it to work. So I cloned your repository, cd'ed into docker-images/master and ran docker build .

Then I ran:

docker run --name jenkins -p 8080:8080 -p 50000:50000 -v ~/tmp/blah:/var/jenkins_home e2a95803c8ab

where e2a95803c8ab is the id of the image I just built.

I am unable to log in as the user admin with the password admin, I get the error message:

Invalid login information. Please try again. 
Try again

I also just tried to run foxylion/jenkins like so:

docker run --name jenkins -p 8080:8080 -p 50000:50000 -v ~/tmp/blah:/var/jenkins_home foxylion/jenkins

and have the same problem.

After running the container there there is a file in ~/tmp/blah called users/admin/config.xml that contains this (amongst more):

    <hudson.security.HudsonPrivateSecurityRealm_-Details>
      <passwordHash>#jbcrypt:$2a$10$NcvhiPxOKBd4SuwRxTXVnufLhrMhV6YTLQzZCn88iKy9vmVm3VYju</passwordHash>
    </hudson.security.HudsonPrivateSecurityRealm_-Details>

so it seems as if something is nearly there.

I suspect (Murphy requires!) that I'm doing something silly, but I can find it.

I don't see any logging info in the console or anywhere in jenkins_home. Is there somewhere I can start digging?

Add support for JNLP encryption

In Readme you have said:

"Note: Using a JNLP slave does not provide any encryption when communicating with the master. In an untrusted network this is not recommended. Use instead the ssh slave image."

But seems it's not true for now https://i.imgur.com/yHWlLn3.png. Am I correct?

default-user.groovy Jenkins.ADMINISTER username

In docker-jenkins/docker-images/master/default-user.groovy,

the line

jenkins.getAuthorizationStrategy().add(Jenkins.ADMINISTER, 'admin')

uses the literal value 'admin' to set the user account to ADMINISTER privilege. It seems like this should instead be

jenkins.getAuthorizationStrategy().add(Jenkins.ADMINISTER, env.JENKINS_USER)

so the newly created account has admin privileges. As is, if the env variable JENKINS_USER isn't 'admin' ( say 'jenkins' instead ) the code doesn't work.

502 Bad Gateway

Hey

This docker is running successfully on Localhost without any errors, but when I configured it on an online server, and I go to the URL so it's showing 502 - bad gateway.
Could you help me to solve this issue?

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.