GithubHelp home page GithubHelp logo

krissrex / docker-jenkins-dockercli Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 10 KB

Jenkins with docker-cli

Home Page: https://hub.docker.com/r/krissrex/docker-jenkins-dockercli/

License: MIT License

Dockerfile 100.00%
docker docker-cli jenkins docker-hub

docker-jenkins-dockercli's Introduction

Jenkins docker image with docker-cli

Why

The docker binary can no longer be mounted from the host OS to the jenkins docker container.
The reason is that the binary does not use static linking any more, and therefore fails to find libraries.

A symptom for this is warnings in jenkins:

docker: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory

Versions

This uses the lts of jenkins, whatever that version is, at the time this image is built.
The docker version is rarely changed, and can be seen in the Dockerfile.

The docker hub automatic build has jenkins/jenkins added as a linked repository.
That means whenever a new version of jenkins is released, this image will also be built.

Usage

Use like the normal jenkins docker image.
Mount the docker socket like this:

-v /var/run/docker.sock:/var/run/docker.sock

You might get permission issues, even after adding jenkins (uid 1000) as a user on the host, and then adding that user to the group docker (gid 497, might depend on your install).

The dirtiest way to fix this is with chmod 666 /var/run/docker.sock on the host.
However, now everyone has access to docker. Depending on your environment, that might be an 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.