Installing Jenkins Plugins to Docker Jenkins
I can't read your screenshots, but you don't seem to be following the official instructions. See https://github.com/cloudbees/jenkins-ci.org-docker under "Installing more tools". Note:
- You should save the plugins to
/usr/share/jenkins/ref/plugins
- You could use a
plugins.txt
file instead, which contains the names of your plug-ins, and you can process with the providedplugins.sh
script. This looks like:
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt
I think the reason your approach wasn't working was to do with some processing in the start-up script.
install Jenkins & its plugins in Docker,then save a new image to be used in the other offline PC
One option is to mound local directory wit Jenkins and install plugins.
docker run -it --rm -v $PWD/:/var/jenkins_home -p 8081:8080 jenkins/jenkins
Once you mount host directory, then install required plugging, create Dockerfile like below
FROM jenkins/jenkins
COPY plugins /var/jenkins_home/plugins/
Then build this Dockerfile,
docker build -t my_custom_jenkins .
Then you can share this image with others and it will contain all plugins.
If you need full configuration then use below option
FROM jenkins/jenkins
COPY . /var/jenkins_home/plugins/
Jenkins in Docker Container - installing Plugins manually doesn't work
Apparently restart throught UI somehow doesn't work here. I've restartet jenkins docker container (or docker service) and now I see the installed plugins in the UI.
How to add Jenkins plugins on docker container deployment?
I ended up creating my own image from a Dockerfile in Dev. Then I deployed it to the internet restricted environment.
FROM jenkins/jenkins:lts
# if we want to install via apt
USER root
RUN apt-get update && apt-get install -y ruby make
# drop back to the regular jenkins user - good practice
USER jenkins
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt*
In the plugins.txt file I provided a list of plugins I would like to be installed.
Unable to install suggested plugins of jenkins on docker
I had the same issue when using the latest weekly
, so I suggest to use the lts
since when specify jenkins
in your command you are pulling latest weekly
run your command like this:
docker pull jenkins/jenkins:lts
docker run -p 8080:8080 jenkins/jenkins:lts
see jenkins
Related Topics
How to Record What Process or Kernel Activity Is Using the Disk in Gnu/Linux
Getting List of Network Devices Inside the Linux Kernel
How to Convert String to Number in Gnuplot
Help with Understanding a Very Basic Main() Disassembly in Gdb
Why Is There No Directx API for Linux
Upstart Calling Script (For Inserted Usb-Drive)
Difference Between Flat Memory Model and Protected Memory Model
Windows Authentication Headers Without .Net. Possible
Extract Tar the Tar.Bz2 File Error
How to Reinstall the Latest Cmake Version
Code Snippet Managers for Linux Desktops
Loading U-Boot in Memory Instead of Flashing It
How to Write Linux Driver Module Call/Use Another Driver Module
Using Rsync Include and Exclude Options to Include Directory and File by Pattern