Tag: jenkins

Docker with both Jar and Gradle executions in it for jenkins

I currently have the following docker file FROM openjdk:8 EXPOSE 8080 WORKDIR /usr/bin/app ENTRYPOINT [“java”, “-jar”] which I build locally and run as docker run -d -P -v $(pwd):/usr/bin/app/ jachno/jarrunner /usr/bin/app/build/libs/com.onboarding-service-0.0.1.jar so basically the docker container has the local volume mapped to it and the name of a JAR that I want to run. this […]

Ansible deploys Docker container to wrong Vagrant VM

Updated after trying out @konstantin-suvorov solution. Now it doesn’t do anything. I have created 5 Vagrant VMs, all from bento/xenial64 and have then used Ansible to deploy docker onto all of the machines. When I then attempt to use Ansible to deploy a container onto a remote VM, it says that it has done it, […]

Jenkins docker missing some binaries

I am running Jenkins in docker from official docker hub . I created job which runs my own shell script, however I see some binaries are missing in docker e.g.file command. They mention on docker hub that one can install additional binaries over Ubuntu’s aptitude however I don’t know which package to install to get […]

Using Jenkins – Build Enviroment

I have a Jenkins server that is responsible for building and deploying all of my microservices. However, each of these microservices needs a different version of a library for build and deployment. What is the best approach to separate this kind of build environment within Jenkins? Is it to use slaves? Is there a solution […]

org.apache.http.conn.UnsupportedSchemeException: unix protocol is not supported

My jenkins is running using official jenkins image from docker hub. When trying to connect to docker cloud using url: unix:///var/run/docker.sock, I got error “org.apache.http.conn.UnsupportedSchemeException: unix protocol is not supported”. If i am trying same thing on jenkins which is not running as docker container than its working fine without any error.

How to setup Continuous Integration (with Ansible)? [closed]

We’ve got a fairly large codebase and we deploy our servers using Ansible. I now want to get started with Continuous Integration and I was thinking of using Ansible for that as well. The way I thought we could do it is that when something is merged to develop or master, a webhook is used […]

Continuous integration – deploying only changed components

I have the following components in java, each is a separate maven module: Eureka server Zuul proxy Microservice #1 Each of these components is a separate Docker image and they are sharing a same Git repository. Also Jenkins is available. My question is it possible when changes are made a single component to only rebuild […]

Can't build openjdk:8-jdk image directly

I’m slowly making my way through the Riot Taking Control of your Docker Image tutorial http://engineering.riotgames.com/news/taking-control-your-docker-image. This tutorial is a little old, so there are some definite changes to how the end file looks. After hitting several walls I decided to work in the opposite order of the tutorial. I successfully folded the official jenkinsci […]

Jenkins shell script add Unix user to group

I am running two consecutive shell scripts in a Jenkinsfile: stage(‘running scripts’) { sh “sudo script1.sh” sh “groups && whoami” } script1.sh: groupadd docker usermod -aG docker ubuntu groups ubuntu Console output is: ubuntu : ubuntu adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd docker But second shell script (i.e: sh “groups […]

How to Access AWS EC2 docker tomcat instance running inside jenkins docker instance from my local browser

I have a jenkins instance running inside a docker container that’s listening on port 8181. Example URL of the jenkins instance: http://ec2-34-155-164-97.us-west-2.compute.amazonaws.com/ I have a tomcat docker instance that’s listening on port 8383 running inside the jenkins docker container. I can access jenkins instance from my local browser. Is there any possible way that I […]

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