This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add java 17 preview * Add required args * Minor fixes after testing * Looks like agents don't need these flags (at least in simple tests) * Update docker-bake.hcl
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG version=4.10-6-jdk17-preview | ||
FROM jenkins/agent:$version | ||
|
||
ARG version | ||
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols" Vendor="Jenkins project" Version="$version" | ||
|
||
ARG user=jenkins | ||
|
||
USER root | ||
COPY ../../jenkins-agent /usr/local/bin/jenkins-agent | ||
RUN chmod +x /usr/local/bin/jenkins-agent &&\ | ||
ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave | ||
USER ${user} | ||
|
||
ENTRYPOINT ["/usr/local/bin/jenkins-agent"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters