-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing support for agent.jar location #859
Comments
Hi @zhan9san , thanks for raising this issue. Would you be willing to make a contribution by opening a PR implementing this feature request? |
Hi @zhan9san , thanks for your PR.
Could you describe the use case to see if further improvement could been made later (or in the documentation)? |
Thanks for your attention. It's a long story. Currently, we are using customized jnlp image which is based on Ubuntu, Debian or CentOS. Using label is not recommended by Kubernetes plugin. It is a historical issue that we are still using it. jenkins-agent in this repo is used as Entrypoint in our own image. Previously, the business-related packages and jenkins-related packages are combined in one jnlp image. Each time we upgrade Jenkins, we need to rebuild the jnlp image as well because JDK/inbound version may be not supported in original image. There are many jnlp images for different business groups. So, I want to decouple them. How-toBesides jnlp container, init container is introduced in pod to manage the jenkins-related logic. Some existing image may define non-root USER in Dockerfile, which doesn't have write permission to JDK, agent.jar and jenkins-agent are downloaded in a shared volume, like The Entrypoint of jnlp would be set to With this feature, I'll set It is inspired by https://issues.jenkins.io/browse/JENKINS-64778 Hope I express myself clear. |
Thanks for the clear explanation @zhan9san . I was interested by this details to see if there wasn't an additional way (documentation improvement, adding a new feature to the images, anything else) for us (maintainers) to help. It looks like, as per your analysis, there is nothing else except delivering your contribution. |
To be exact, it is in https://github.com/zhan9san/init-jnlp/blob/main/README.md?plain=1#L58-L59 |
Your new feature is now available: https://hub.docker.com/r/jenkins/inbound-agent/tags?page=&page_size=&ordering=&name=3261.v9c670a_4748a_9-2%20 |
What feature do you want to see added?
All except agent.jar location are supported to defined in environment variables.
docker-agent/jenkins-agent
Line 132 in 45445ae
Upstream changes
No response
Are you interested in contributing this feature?
yes
The text was updated successfully, but these errors were encountered: