Giter Club home page Giter Club logo

jenkins-docker's Introduction

Jenkins Docker image

This is a fully functional Jenkins server http://jenkins.io/ with pre installed "blueocean" plugin.

Build

docker build --tag srempfer/jenkins jenkins-docker

Usage

Linux

docker run \
  -p 8080:8080 \
  -e JENKINS_USER="admin" \
  -e JENKINS_PASS="admin" \
  -v jenkins_home:/var/jenkins_home \
  -v /var/run/docker.sock:/var/run/docker.sock \
  srempfer/jenkins

Windows

docker run ^
  -p 8080:8080 ^
  -e JENKINS_USER="admin" ^
  -e JENKINS_PASS="admin" ^
  -v jenkins_home:/var/jenkins_home ^
  -v /var/run/docker.sock:/var/run/docker.sock ^
  srempfer/jenkins

See also https://github.com/jenkinsci/docker

jenkins-docker's People

Contributors

srempfer avatar

Watchers

 avatar  avatar

Forkers

pgerhard

jenkins-docker's Issues

User "jenkins" could not access docker daemon

At the moment the Jenkins process is running with root and not with the user "jenkins".
This is required to prevent a permission denied error when using the bind mounted docker daemon.

There is below solution for the problem but it only works for usage on Linux

###################
# Adding docker group with the same guid as the mounted volume
# Otherwise you get the message /var/run/docker.sock: connect: permission denied
# if jenkins user try to access it
# 
# https://github.com/hashicorp/docker-consul/issues/50#issuecomment-273281357
# docker build --build-arg docker_gid=$(stat -c '%g' /var/run/docker.sock) \
#
ARG docker_gid
RUN addgroup --gid ${docker_gid} docker && addgroup --system jenkins docker
###################

Find a solution which is also working for the usage on "Docker for Windows"

Format problems with plugins.txt

Currently the plugins to install are provided direct as argument

RUN /usr/local/bin/install-plugins.sh blueocean

The "plugins.txt" could not be used because there is a format problem caused by line ending mismatch between Windows and Linux.

Find a way to use "plugins.txt"

COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

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.