Tag: jenkins

Docker build ubuntu:xenial issue

I try to build a docker image with docker-py in Jenkins. The scripts looks like this: # Let’s build the toolchain-base-image from io import BytesIO from docker import Client from pprint import pprint import sys cli = Client(base_url=”tcp://″) #cli = Client(base_url=’unix://var/run/docker.sock’) GCC_VERSION_TAG=”4_9″ with open(“/path/to/docker-” + GCC_VERSION_TAG + “-gcc-base-image-dockerfile”, mode=”r”) as dockerfile: f = BytesIO(dockerfile.read().encode(‘utf-8’)) try: […]

Deploy apps from release server

I don’t like when it comes to release my projects on production server.. May be i just don’t have enough experience, nobody taught me how to do this in a right way. For now i have several repos with scala (on top of spray). I have everything to build and run this projects on my […]

Error trying to install Ansible in Jenkins image

I’m trying to install Ansible in my Jenkins image (this way). This is my Dockerfile: FROM jenkins USER root RUN apt-get install -y software-properties-common RUN apt-add-repository ppa:ansible/ansible RUN apt-get update RUN apt-get install -y ansible USER jenkins But when I build the image, I get this error: W: Failed to fetch http://ppa.launchpad.net/ansible/ansible/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found […]

Jenkins and running rake tasks

I’m having some issues running a rake task from within Jenkins (within a docker container) as part of a build process (I have the Rake plugin installed). I am getting the error java.io.IOException: Cannot run program “rake” (in directory “/var/jenkins/workspace/HendricksFeaturesCopy”): error=2, No such file or directory Which i don’t understand as when i pwd $ECHO […]

How to configure xvfb default installation on Jenkins startup?

I am setting up a Jenkins instance in Docker. I am using /usr/local/bin/plugins.sh to install the plugins. I am copying groovy scripts to /usr/share/jenkins/ref/init.groovy.d/ to initialize some configuration. I can’t figure out how to initialize an Xvfb installation location. There are classes is the org.jenkinsci.plugins.xvfb namespace. I am not sure which class to use to […]

Jenkins build an image for Docker?

I’m a beginner with Jenkins CI integration with Docker. My virtual machine tcp:// I created an image “personluz” with my SVN source code and the configuration like this image image config But the result is: error FATAL: Cannot run program “docker“: error=2, No such file or directory Could anyone have some idea? Thanks

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 –dns″ DOCKER_OPTS=”G- jenkins -H unix://var/run/docker.sock -H tcp://″ export DOCKER_HOST=”tcp://″ 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 […]

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