Public | Automated Build

Last pushed: 2 years ago
Short Description
Jenkins master and node based on Fedora image. Jenkins master, with the help of Docker plugin, able to start jobs on node.
Full Description

Jenkins

The Dockerfile builds image for latest
Jenkins based on Fedora.

Exposed ports :

  • 8080

Options:

  1. Access the Jenkins files from host

    Upon container creation, it is possible to share Jenkins files with host.
    The files will be accessable from :

    • Host - /path/on/host
    • Container - /shared

    • /var/lib/jenknis - "home" folder of jenkins (plugins, logs, etc)

    • /etc/sysconfig/jenkins - jenkins configuration
    • /root/.ssh - root ssh keys should be used for the ssh plugin

      Docker command :

      docker run -d -P -v /path/on/host:/shared abraverm/jenkins:master

Docker Pull Command
Owner
abraverm
Source Repository

Comments (3)
abraverm
3 years ago

@lielran the 172.17.42.1 is the default IP of NIC 'docker0' on your docker host. In my example the Jenkins master and nodes are running on the same host. Docker plugin (in Jenkins) communicates with [host on tcp][1] so "Make sure to configure Docker host to listen on TCP port" (read the information above). Also 172.17.42.1 is the default gateway for the containers.

1

lielran
3 years ago

the URL to the Docker Server(Jenkins config) is not working for me... should i expose some kind of networking between the container of the master into my host ?
or in other words -who is 172.17.42.1 in your's example? and why port 4243 ?

abraverm
3 years ago

Currently there is an (issue)[1] with image tags in Docker plugin (0.7). Quick fix is to use Jenkins node image ID.

1