Tag: jenkins

How can I increase my Docker Sonarqube disk space to avoid this warning?

I get the following output when running the SonarQube Scanner from Jenkins: 2016.02.23 11:01:00 INFO es[o.e.c.r.a.decider] [sonar-1456222793208] high disk watermark exceeded on one or more nodes, rerouting shards 2016.02.23 11:01:30 WARN es[o.e.c.r.a.decider] [sonar-1456222793208] high disk watermark [90%] exceeded on [VKGYodBwSRylFJ46lQT_xw][sonar-1456222793208] free: 436.6mb[2.3%], shards will be relocated away from this node 2016.02.23 11:02:00 WARN es[o.e.c.r.a.decider] [sonar-1456222793208] […]

How to externalize the docker container file

I am building a custom docker image from the jenkins official image. I want to install the maven to the image and exteralize maven’s config file. But I failed. After the container startup, there is a empty /etc/mavendirectory. I think it may be a permission issue but I can’t solve it after a half day’s […]

Official Jenkins Dockerfile acting strange

I want to use the official jenkins docker image from here : https://github.com/jenkinsci/docker/tree/62de121e41ddd92ef34e9999162932334b05f0d7 and further customize it. When i just launch a container with docker run -d -p 8080 jenkins , it plays ok. But when I download all the project and build it locally [as it is,without changing anything], when I launch a container […]

run docker commands from command prompt versus jenkins script

I have a test Ubuntu server with docker-machine installed. I have a number of docker containers running on the servers. Including a Jenkins container. I run jenkins with the following command docker run -d –name jenkins -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker –restart=always -p 8080:8080 -v ~/jenkinsHome:/var/jenkins_home docker-jenkins I am working on managing my images through […]

error with docker container with postgresql

I am unable to install postgresql on existing jenkins docker image,below are the list of steps i have followed: Step 1 : Download the jenkins and specify the name for the volume to jenkins-home as described in the below article http://www.catosplace.net/blog/2015/02/11/running-jenkins-in-docker-containers/ using the below command download the image and specify the volume docker create -v […]

How to SSH into running docker container from jenkins execute shell

I am running a docker container (dind) from jenkins execute shell CONTAINER_ID=”$(sudo docker run –privileged -i -d jpetazzo/dind)” To execute docker commands inside container I get into container shell sudo docker exec -it –privileged ${CONTAINER_ID} bash and than I am trying to execute these commands inside dind container. sudo docker pull hubuser/hello-world sudo docker run […]

Jenkins and SonarQube in same dockerfile

How to create Docker image which contains jenkins and sonarqube in same container. I have a dockerfile for jenkins. FROM jenkins USER root RUN apt-get update \ && apt-get install -y sudo \ && rm -rf /var/lib/apt/lists/* RUN echo “jenkins ALL=NOPASSWD: ALL” >> /etc/sudoers USER jenkins COPY hudson.plugins.msbuild.MsBuildBuilder.xml /var/jenkins_home COPY hudson.plugins.sonar.SonarPublisher.xml /var/jenkins_home COPY hudson.plugins.sonar.SonarRunnerInstallation.xml /var/jenkins_home […]

Jenkins inside docker loses configuration when container is restarted

I have followed the next guide https://hub.docker.com/r/iliyan/jenkins-ci-php/ to download the docker image with Jenkins. When I start my container using docker start CONTAINERNAME command, I can access to Jenkins from localhost:8080. The problem comes up when I change Jenkins configuration and restart Jenkins using docker stop CONTAINERNAME and docker start CONTAINERNAME, my Jenkins doesn’t contain […]

Install Docker on Jenkins on OSX

I have a local jenkins on OSX. It’s working fine, but now I want to perform docker builds inside the jenkins. So I have to install docker inside my jenkins. Is this possible, because I thought you can’t install docker on osx? (only docker-machine). I don’t know if it’s possible to configure jenkins to use […]

Integration Tests with Microservices (NodeJS), Jenkins and Docker

How would you typically configure Jenkins to build microservices (multiple NodeJS services, Rabbit, Mongo, etc), then test those services all together ? Let’s say I’ve the following services: RabbitMQ Mongo NodeJS Service 1 NodeJS Service 2 Each of them has their own tests (unit and integration) and their Dockerfile. I want to configure Jenkins in […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.