Giter VIP home page Giter VIP logo

docker-jenkins's Introduction

Jenkins

Description

Extends official Jenkins image with Docker to be able run jobs inside containers.

  • Based on: Official Jenkins 2.176.1, Jenkins 2.305, Jenkins 2.324 and Jenkins 2.401
  • Included:
    • Docker

Note: Provided images require additional configuration for development, staging and production use.

Tags

Tag Jenkins version Details Dockerfile
spryker/jenkins:latest 2.401.3 ๐Ÿ”—
spryker/jenkins:2.176 2.176.1 ๐Ÿ”—
spryker/jenkins:2.305 2.305 ๐Ÿ”—
spryker/jenkins:2.324 2.324 ๐Ÿ”—
spryker/jenkins:2.401 2.401.3 ๐Ÿ”—

How to use

Pull image

$ docker pull spryker/jenkins:2.401

Dockerfile

FROM spryker/jenkins:2.401

docker-compose.yml

jenkins:
    image: spryker/jenkins:2.401

How to run docker container by Jenkins job

Get proper group ID

  • Linux: export DOCKER_GID=$(ls -n /var/run/docker.sock | awk '{print $4}')
  • MacOS, Windows: export DOCKER_GID=0

Running with docker

docker run -it --rm --group-add ${DOCKER_GID} -v /var/run/docker.sock:/var/run/docker.sock:ro spryker/jenkins:2.401

Running with docker-compose

jenkins:
    image: spryker/jenkins:2.401
    user: "1000:${DOCKER_GID}"
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock:ro

Job definition example

...
    <builders>
        <hudson.tasks.Shell>
            <command>
                docker run -i --rm \
                my-image \
                command-to-run
            </command>
        </hudson.tasks.Shell>
    </builders>
...

More information

docker-jenkins's People

Contributors

alexanderm91 avatar kalaputsik avatar sprymiker avatar zyuzka avatar

Watchers

 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

docker-jenkins's Issues

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.