Sign inSign up

nanorocks/jenkins-with-docker

By nanorocks

•Updated over 2 years ago

Built upon the official Jenkins (LTS), with JDK 11. Includes Docker for containerized workflows

Image
0

182

nanorocks/jenkins-with-docker repository overview

Base Image for Jenkins with Docker Support

This Docker image is built upon the official Jenkins Long-Term Support (LTS) release, incorporating JDK 11. In addition to the standard Jenkins setup, it includes Docker support to enable seamless integration with containerized workflows.

Key Features:

  • Base Image: Built on jenkins/jenkins:lts-jdk11.
  • Docker Support: The image is equipped with Docker to facilitate containerized build and deployment processes.
  • User Configuration: The Docker daemon is accessible to the Jenkins user by adding it to the 'docker' group, allowing Jenkins to interact with Docker commands.

Usage Instructions:

  1. Run Jenkins containers based on this image.
  2. Docker commands can be executed directly within Jenkins jobs, providing a versatile environment for building, testing, and deploying applications in containers.

How it's Build:

FROM jenkins/jenkins:lts-jdk11

USER root

RUN apt update && curl -fsSL https://get.docker.com | sh

RUN apt install -y docker-compose 

RUN usermod -aG docker jenkins

USER jenkins

Note: Ensure proper security measures are in place, and access to the Docker daemon is controlled as per best practices.

Your docker-compose file

version: "3"
  
services:
    
  jenkins:
      image: nanorocks/jenkins-with-docker
      privileged: true
      user: root
      restart: always
      ports:
        - 8080:8080
        - 50000:50000
      container_name: jenkins
      networks:
          - jenkins-docker
      volumes:
          - .docker/jenkins_home:/var/jenkins_home
          - /var/run/docker.sock:/var/run/docker.sock
networks:
  jenkins-docker:
    driver: bridge

Tag summary

Content type

Image

Digest

sha256:d40cbdaeb…

Size

596.2 MB

Last updated

over 2 years ago

docker pull nanorocks/jenkins-with-docker