Tag: jenkins

Best way to stop Docker container in Jenkins

I have a CI-server (jenkins) which is building new Docker images. Now I want to run a new Docker container when the build is succesful. But therefor I have to stop the previous running container. What’s the best way to perform this? localhost:5000/test/myapp:”${BUILD_ID} is the name of my new images. So I’m using the build-id […]

create jenkins image with docker

I want to create a jenkins image with a dockerfile. Docker is running (tried it with the hello-world image). My Dockerfile: FROM jenkins:latest USER root RUN apt-get update && apt-get install -y build-essentials USER jenkins I want to build an image with this command sudo docker build -t “jenkins_master” . But i always get this […]

DevOps vs Docker

I am wondering how exactly does docker fit into CI /CD . I understand that with help of containers, you may focus on code , rather than dependencies/environment. But once you check-in your code, you will expect tools like TeamCity, Jenkins or Bamboo to take care of integration build , integration test/unit tests and deployment […]

jenkins pipeline after run unit test karma script do not stop

I created un jenkins pipeline which run a docker container with nodeJs, karma and xvfb to run unit test. Test are successful passed but the script never stop even with captureTimeout: 60000 and singleRun: true in the karma configuration Where i’m wrong [33m05 04 2017 16:01:54.227:WARN [karma]: [39mNo captured browser, open http://localhost:9876/ [32m05 04 2017 […]

Jenkins Docker container with root permissions?

I want to build a jenkins docker container with root permissions so that i can us apt-get feature to install gradle. I am using this command to run jenkins on 8080 port but i also want to add gradle as enviornment variable : docker run -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home jenkins or what dockerfile […]

DockerHub Webhook trigger Jenkins build

I tried to use https://github.com/jenkinsci/dockerhub-plugin but failed. This project seems to be exactly what I want, but it seems that this project is not being actively developed. The documentation is basically 0. Is there any plan to move forward with this project? Is there any other project that can do same/similar things? My project currently […]

sbt-native-packager with docker output in Jenkins

I have an SBT project with sbt-native-packager 1.0.2 plugin that works fine if I run locally sbt docker:publish. When I do the same thing in Jenkins using the sbt plugin, I get the following error: [info] Step 2 : RUN dnf -y install java-1.8.0-openjdk-headless wget sed ca-certificates openssl [info] —> Running in 1b3918fcffa6 [info] exec: […]

Build/push image from jenkins running in docker

I have two docker containers – one running jenkins and one running docker registry. I want to build/push images from jenkins to docker registry. How do I achieve this in an easy and secure way (meaning no hacks)?

Jenkins – Docker integration – Use Jenkins to build Docker images and push to the registry

I am currently working on integrating Docker with Jenkins and I am currently trying to figure out the following pipeline: Whenever a Dockerfile is updated in GIT, trigger a Jenkins Job to do the following Build the Docker image List item Test, Verify the Docker image Version the image – Prod, testing etc. Push the […]

Rancher Performance (Docker in Docker?)

Looking at Rancher, what is the performance like? I guess my main question, is everything deployed in Rancher docker in docker? After reading http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ I trying to stay away from that idea. It looks like the Rancher CI pipeline with Docker/Jenkins is docker in docker, but what about the rest? If i setup a docker-compose […]

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