Comments (5)
i had a similar problem trying to use a letsencrypt certificate for my jenkins master, and i wasn't able to get the noCertificateCheck
to work even when modifying the jenkins-slave
script, so I downloaded the .der format "Letβs Encrypt Authority X3 (IdenTrust cross-signed)" certificate from https://letsencrypt.org/certificates/ and added it to the openjdk keystore. You can do something similar in your dockerfile with your self signed certificate:
USER root
ADD lets-encrypt.der .
RUN keytool -importcert -alias local-CA \
-keystore /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts \
-file lets-encrypt.der \
-storepass changeit
USER jenkins
ENTRYPOINT ["jenkins-slave"]
Note that you probably have your self signed cert in pem format, and java needs it in der format, so something like openssl x509 -outform der -in certificate.pem -out certificate.der
may come in handy
from docker-agent.
https://github.com/jenkinsci/docker-jnlp-slave/releases/tag/3.35-5 likely resolves it by adding support of headless connection and explicit env vars for certificates & Co. Please reopen the issue if it does not flly resolve the issue
I don't understand. How does that solves the issue? How to set a custom certificate?
from docker-agent.
https://github.com/jenkinsci/docker-jnlp-slave/releases/tag/3.35-5 likely resolves it by adding support of headless connection and explicit env vars for certificates & Co. Please reopen the issue if it does not flly resolve the issue
from docker-agent.
I guess that is more a question for the EC2 container service plug-in, you can ask in the jenkins users mailing list
from docker-agent.
@diffalot tried it and it works, thanks
from docker-agent.
Related Issues (20)
- Build both agent and inbound-agent container images in this repository HOT 13
- Windows agent does not work on AWS Fargate HOT 5
- Docker image for docker-inbound-agent from debian bullseye distribution based agent docker image HOT 1
- Usage: is "java -jar /usr/share/jenkins/agent.jar" up to date? HOT 12
- Add doc how to build the different images
- Rename this repository to reflect that it concerns both `agent` and `inbound-agent`? HOT 1
- NoClassDefFoundError: org/eclipse/jgit/internal/JGitText HOT 11
- README_agent.md links to dockerhub HOT 2
- updatecli is not working for updates to JDKs HOT 5
- Images are missing from the inbound-agent README
- DockerHub Description automated process is broken since 2 months (at least?) HOT 8
- [Windows] ci.jenkins.io build fails since 3 days HOT 5
- How can I build docker images from inside jenkins/agent HOT 1
- Jenkins agent exits immediately without any logs and error code 159 (RPI 4, aarch64, Raspbian 64 bit) HOT 27
- Generate smaller java runtime with jlink in Windows images HOT 2
- JDK 21 preview updatecli manifest is failing HOT 13
- Move JDK1 `linux/s390x` out of preview HOT 1
- Unable to build an extension of inbound-agent:*ltsc2019 HOT 3
- Add building documentation
- jenkins-agent.ps1 is missing in jenkins/agent:jdk17-nanoserver-ltsc2022 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-agent.