Tag: jenkins

Error when installing RVM as jenkins user

I am trying to setup a docker container that has jenkins and rvm installed, but everytime i try and install rvm as the jenkins user i get the following error GPG signature verification failed for ‘/var/jenkins_home/.rvm/archives/rvm-1.27.0.tgz’ – ‘https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc’! try downloading the signatures: So far my Dockerfile looks like FROM jenkins USER root # Install some […]

Docker REST API is not binding on port for Jenkins

I am using : docker version: 1.11.1, build 5604cbe . I have made entries in /etc/default/docker as follows to configure REST API of docker for jenkins user group : # Use DOCKER_OPTS to modify the daemon startup options. #DOCKER_OPTS=”–dns 8.8.8.8 –dns 8.8.4.4″ DOCKER_OPTS=”G- jenkins -H unix://var/run/docker.sock -H tcp://0.0.0.0:9090″ export DOCKER_HOST=”tcp://0.0.0.0:9090″ ps- I have also tried […]

Jenkins run external script with docker command

I’m trying to run a jenkins job with parameters. This job run an external script that invoke docker. I added user jenkins user to docker group and restarted jenkins also. When I execute the script from a console is OK but from a jenkins build I got: Cannot connect to the Docker daemon. Is the […]

Running tests with Docker and Jenkins – Test Result

I have an application written in Rails. In order to test it I’ve built a docker image. Everything works fine. The problem, however, appears when I configure Jenkins to run those tests. Here’s what I do, at the building step: docker-compose up rspec Where rspec is a service defined at docker-compose.yml and contains the following […]

Deploy to JBoss from Docker Jenkins Container

I have a docker Jenkins container running on RHEL host machine that pulls out code from TFS and builds a war using Ant scripts. After the build is complete we want to push the war to a JBoss running on our RHEL host. What is the best way to do this? We have the Jenkins […]

What is the best practice for Docker CD/CI workflow?

I am pretty new to docker worlflow, and I am wondering what is the best practice to do for docker CD/CI workflow…most of the articles out right now seems to not really talk about the “deployment” part of docker, only the registration. What I want to do: Make some code changes Push to Git Jenkins […]

jenkins plugins installed via CLI inside docker container is not showing up in jenkins web console

According to the README.md file in the official JenkinsCI for Docker repository, I have started a jenkins master in a docker container with a named volume such as this $ docker run -d \ –publish 8080:8080 \ –volume jenkins_home:/var/jenkins_home \ –name jenkins_master \ jenkins After that, I have used the browser to: visit localhost:8080, installed […]

Jenkins docker setup

I am using Jenkins to make build of project, but now my client wants to make builds inside of a Docker image. i have installed docker on server and its running on 172.0.0.1:PORT. I have installed Docker plugin and assigned this TCP URL to Docker URL. I have also created an image with the name […]

spinning up multiple jenkins docker slaves for a single job

I am attempting to use this plugin to have docker slaves in jenkins https://wiki.jenkins-ci.org/display/JENKINS/Docker+Slaves+Plugin However when I do I just get an unhelpful error: Started by user test_admin FATAL: null xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotExecutorProvisioningException at xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotSlave.provisionFailed(OneShotSlave.java:146) at xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotSlave.provision(OneShotSlave.java:130) at xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotSlave.createLauncher(OneShotSlave.java:155) at xyz.quoidneufdocker.jenkins.dockerslaves.DockerSlave.createLauncher(DockerSlave.java:90) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:561) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE I am […]

Use docker-compose with docker swarm

I’m using docker 1.12.1 I have an easy docker-compose script. version: ‘2’ services: jenkins-slave: build: ./slave image: jenkins-slave:1.0 restart: always ports: – “22” environment: – “constraint:NODE==master1” jenkins-master: image: jenkins:2.7.1 container_name: jenkins-master restart: always ports: – “8080:8080” – “50000” environment: – “constraint:NODE==node1” I run this script with docker-compose -p jenkins up -d. This Creates my 2 […]

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