Closed daixtrose closed 5 years ago
Using the Dockerfile below the system works after installing blue ocean plugin. Do I have to explicitly install Docker in jenkins/blueocean
i.e. derive from that Docker image?
FROM jenkins/jenkins:lts
MAINTAINER daixtrose
USER root
# Install the latest Docker CE binaries
RUN apt-get update && \
apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common && \
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" && \
apt-get update && \
apt-get -y install docker-ce && \
apt-get autoremove -y && \
apt-get autoclean -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
you should ask in the jenkins-user mailing list, no idea what's in jenkinsci/blueocean but obviously you would need the docker binary
@daixtrose Thanks for making your request so detailed. But please follow the explanation, there is a template for issues here for a reason:
In your case, this looks like a users mailing list issue. Even more because as Carlos said, this repo is not even about BlueOcean Docker image.
Thanks!
The problem with the Jenkins Docker container is, that the container does not contain the "docker" command. If you wish to use Pipelines with docker container you have create a new docker container from the Jenkins one. This is possible with a Dockerfile like the one from @daixtrose but I think the official docker image of jenkins should ship the docker client inside the container. So everyone could start tests inside docker with the offical jenkins image without building a extra image.
General Description
Following the Blue Ocean tutorial everything goes fine until the creation of an initial pipeline. During the connection to my public GitHub fork of the repository BlueOcean complains that there are no jenkinsfiles in the repo (but they should be there).
My suspicion: the internal Docker system is not set up such that it can call back to the Docker host, since there is no Agent entry in the GUI from which I could choose the agent.
Docker commands that I execute
(Note that I use a new directory
/var/jenkins_data
on the host to ensure no old crap makes trouble)Actual result
No agent settings visible:
Expected outcome
A selection combo box for the Docker agent
Have you tried a non-dockerized Jenkins and get the expected outcome?
No.
Output of
docker version
Docker running on Ubuntu 16.04.3 VMWare VM host on ESXi
Other relevant information
A lot of errors on the command line, here an excerpt: