Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Masber
    @Masber
    hi, does it makes sense to use the jenkins docker agent when jenkins itself runs in a container?
    1 reply
    jcck2016
    @jcck2016
    Hi All, i pulled the official jenkins docker image try to setup jenkins in ubuntu
    however when i ran the command docker run jenkins/jenkins
    or trying to set a specific using docker run -p 8181:8181 jenkins/jenkins
    i was not able to reach the jenkins web site with neither port 8080 or 8181, can you let me know why ? i am running the ubuntu vm on virtual box
    jcck2016
    @jcck2016
    i answered my own question 8080 just worked, probably not good to mess it around, i checked firewall ufw it was not active
    Gavin Mogan
    @halkeye
    Btw I would recommend the general Jenkins channel next time. There tends to be more people around
    Harshad Dabhade
    @Harshad09
    Hello everyone I am Harshad Dabhade
    And I am very interested in Jenkins.
    I wanted to contribute to a project where a plugin to automate polling of image changes and security scans, need to be developed but I am not getting the Github repository, of this project can anyone help me out.
    Gavin Mogan
    @halkeye
    so this channel is for "jenkins docker packaging and plugins". I don't think your question (and you didn't really ask one) is related to that. There is a tutorial on making plugins - https://www.jenkins.io/doc/developer/tutorial/
    vivek kumar sahu
    @viveksahu26
    Hello everyone !! I am newbie here.. I know java and docker both, but i am not getting the projects to contribute. Can anyone help me out to get repo . And any suggestion anyone like to add for newcomer..
    Vlad Silverman
    @vsilverman
    Hello @viveksahu26 , their is dedicated for newcomers channel - https://gitter.im/jenkinsci/newcomer-contributors - to ask any questions you have. Also you may start contributing at https://www.jenkins.io/participate/
    aloussayef
    @aloussayef
    Hello,
    I'm trying to setup a multi-environment Jenkins instances orchestrated by Swarm. And i'm looking for customizing the UI including .svg logos in header and login screen.
    I'm using the theme plugin with a css file under userContent to differentiate the environments by colors and that works just fine since it's isolated from the war content.
    the jenkins logo is embedded in jenkins.war. If i want to update the logo per environment i need to overwrite the file once the war/ dir is inflated inside the jenkins_home then restart. This is annoying knowing that when i upgrade the version (most recent file of war/images/jenkins-header-v2.svg replaces the manipulated one when the new war explodes).
    So as a workaround and since i'm also manipulating the scripts (jenkins.sh & install-plugins.sh) i included a step to run the java -jar jenkins.war then kill it once the war explodes, replace the files and then run the same command in background with a complete list of JAVA_OPTS and JENKINS_OPTS this time.
    This automates the process and i don't have to manually replace the logos.
    I don't feel like this is the best solution but i couldn't find any other lead. note that extracting the war kind of distorts the Manifest file and makes it impossible to run the app without rebuilding it which means more scripting.
    I'm curious to know if there are folks out there doing something similar.
    3 replies
    vivek kumar sahu
    @viveksahu26
    I am sophomore ECE student. I am beginner in Docker. Is there any projects on Docker, to get my hands dirty on Docker.
    Tim Jacomb
    @timja
    jenkinsci/docker#985 has broken publishing of docker images, publish.sh needs a rework to handle the new directory structure
    Alex Earl
    @slide
    I'll fix it
    Just need my internet to be fixed...should be tomorrow
    Gavin Mogan
    @halkeye
    is there an etd on the above?
    since the new release went out today, people are noticing the docker images are not released
    so we might want to update twitter or something
    users list maybe?
    Alex Earl
    @slide
    Internet still not fixed....
    Hannah Keith
    @HannahKeith
    Hey all! I'm new to using Jenkins and have a question that I haven't had luck answering elsewhere. So I am using the blueocean image of jenkins in docker. My container is working properly and I was able to configure connections with github and deployment with publish over ssh. Now it's time to share this with my coworkers and I'm wondering if there is a way to keep all of my configurations so they don't have to go through the manual setup (and probably make errors). If i build a new image from my container it won't contain all of the internal configurations correct? Do I understand correctly that I need to add them into volumes? Thanks for helping a newbie!
    Alex Earl
    @slide
    @HannahKeith You can use a volume for JENKINS_HOME (in the image it is /var/jenkins_home). Then all of the config would be written to that directory on the host. You would need to share that directory with your coworkers and give them the correct volume mapping for that. Does that answer the question?
    Gavin Mogan
    @halkeye
    how does the docker images get updated plugin manager on them? The fix that just got merged makes it possible to hook up plugin manager instead of install-plugins.sh in the helm chart, but lts and other images will have an older version there
    Tim Jacomb
    @timja
    @halkeye with PRs like this atm: jenkinsci/docker#1004 jenkinsci/docker#992
    Gavin Mogan
    @halkeye
    it won't backfill though right? only new images?
    detecting if the file is there or not is easy, but detecting if its the fixed version is hard
    Tim Jacomb
    @timja
    no it doesn't backfill
    @halkeye
    $ jenkins-plugin-cli --version
    2.1.0
    you need at least 2.1.1, shouldn't be a hard check?
    Mark Waite
    @MarkEWaite
    The "Installing - Docker" section now uses Jenkins plugin manager CLI to install the Blue Ocean plugin and all its dependencies rather than relying on the blueocean image. https://www.jenkins.io/doc/book/installing/docker/ . Same for the tutorials like maven https://www.jenkins.io/doc/tutorials/build-a-java-app-with-maven/ , Python https://www.jenkins.io/doc/tutorials/build-a-python-app-with-pyinstaller/ , and Node https://www.jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/ . Still an issue in the Node.js tutorial with access to the resulting demo site, but that seemed less valuable than being able to switch from the blueocean image to the official Jenkins image.
    Gavin Mogan
    @halkeye
    @timja do you know how to compare versions in bash?
    https://stackoverflow.com/a/37939589 will probably work if can assume there no extra fields
    @timja \o/ do i need to make a PR to update the image?
    Tim Jacomb
    @timja
    Yup :D
    Alex Earl
    @slide
    @halkeye There is a function in jenkins-support.sh that will compare versions
    Gavin Mogan
    @halkeye
    oh interesting, source /usr/local/bin/jenkins-support then versionLT ver1 ver2
    Alex Earl
    @slide
    Yeah, I think that should work
    . /usr/loca/bin/jenkins-support && versionLT ver1 ver2
    maybe?
    Gavin Mogan
    @halkeye
    Alex Earl
    @slide
    I don't think it needs to change...just letting you know
    Gavin Mogan
    @halkeye
    yea, thats good to know for sure, that giant conditional with all those cuts kinda scare me
    Alex Earl
    @slide
    :D
    Gavin Mogan
    @halkeye
    hey docker sig people, I don't know if this includes the docker plugin, but there's a user on IRC having issues with using docker in freestyle on a different arch agent
    Adam Dougal
    @adamdougal
    Heya, I'm currently deploying Jenkins to Kubernetes using the public Docker image. Does anyone know if it supports outputting the server logs in a logstash json format? We'd normally use this dependency in our Java projects https://github.com/logstash/logstash-logback-encoder. Thanks
    Alex Earl
    @slide
    I think there is a logstash plugin, but I am not sure
    Adam Dougal
    @adamdougal
    Yea, that looks like it's for shipping job console logs, rather then the Jenkins master server logs
    Alex Earl
    @slide
    I don't know of anything like that right now