Tag: jenkins

Docker images versioning for Continuous Integration / Continuous Deployment

We’re implementing our Continuous Integration and Continuous Delivery processes with the use of two well-known concepts: Linux binary packages and Docker images. The most part of the work is already done: we take the code from GitLab repo, compile it and put into the deb packages stored in Aptly, then we create Docker images for […]

Docker in Docker permissions error

I have a docker in docker setup for CI. Essentially, the machine has a jenkins CI server on it that uses the same machines docker socket to create nodes for CI. This was working great until I recently updated docker. I’ve identified the issue, but I can’t seem to figure out the right magic to […]

Jenkins + Docker

I would like to create a continous integration Workflow using Jenkins + BitBucket + Docker + Python. Here are all steps that I imagine: The user push app python code with tests unit and a Dockerfile. BitBucket hook a job on jenkins Jenkins clone the repository. Jenkins build the Dockerfile. Jenkins run the docker image […]

Setup secured Jenkins master with docker

I would like to set up a secured Jenkins master server on ec2 with docker. I’m using standard jenkins docker file from here: https://registry.hub.docker.com/_/jenkins/ By default it opens an unsecured 8080 http port. However I want it to use a standard 443 port with https (at first I want to use self-signed ssl certificate). I […]

How does ENTRYPOINT Docker directive react when extending images

I want to know does react the ENTRYPOINT instruction from Dockerfiles when heritage happens : Let’s say for example I have an image called : jenkins FROM java:8-jdk RUN … ENTRYPOINT [“/bin/tini”, “–“, “/usr/local/bin/jenkins.sh”] By running this image, the ENTRYPOINT directive will start and install the application as expected Let’s say now that I want […]

Jenkins: Can't connect to Docker daemon

I am running Jenkins and Docker on a CentOS machine. I have a Jenkins job that pulls a Github repo and builds a Docker image. When I try running the job I get the error: + docker build -t myProject . Cannot connect to the Docker daemon. Is the docker daemon running on this host? […]

Where to keep Dockerfile's in a project?

I am gaining knowledge about Docker and I have the following questions Where are Dockerfile’s kept in a project? Are they kept together with the source? Are they kept outside of the source? Do you have an own Git repository just for the Dockerfile? If the CI server should create a new image for each […]

Setting build args for dockerfile agent using a Jenkins declarative pipeline

I’m using the declarative pipeline syntax to do some CI work inside a docker container. I’ve noticed that the Docker plugin for Jenkins runs a container using the user id and group id of the jenkins user in the host (ie if the jenkins user has user id 100 and group id 111 it would […]

How to run google chrome headless in docker?

My problem is how run google chrome in docker container for e2e testing , i make an Dockerfile from official jenkins image, but when try run google chrome this crash and show the next error Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted Trace/breakpoint […]

How to find docker rest api url?

I have installed the docker build step plugin for jenkins. The documentation is telling me: Name :Choose a name for this Docker cloud provider Docker URL :The URL to use to access your Docker server API (e.g: http://172.16.42.43:4243) How can I find my url to the rest api (I have docker installed on my host)

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