This is a Jenkins Windows Build Slave Node built on windowsservercore.
936
This is a Windows Image designed to run in a Windows Container.
This image is designed to operate as a Jenkins Slave node. It is built on top of the windowsservercore image and includes the following:
Create a new node in your Jenkins Master. Make sure you select "Permanent Agent". Make sure you set "Remote Root Directory" to "c:\JenkinsRoot" and "Launch Method" to "Launch Agent via Java Web Start". Click OK and then click the new node and you will see something like this:
java -jar agent.jar -jnlpUrl http://my-jenkins-server.com:8000/computer/Docker1/slave-agent.jnlp -secret de494735554fab06e3f26139ce178360c9e418368c50a8e072f3197cdee89f6c -workDir "c:\jenkinsroot"
Copy the jnlpUrl and secret values into the docker-compose file below.
version: '2.1'
services:
JenkinsWindowsSlave:
image: liveforensics/jenkinswindowsslave:1903
container_name: JenkinsSlave
networks:
- jenkins-network
environment:
- JENKINS_URL=http://my-jenkins-server.com:8000/computer/Docker1/slave-agent.jnlp
- JENKINS_SECRET=e2dxxxxxxxxxxxxxx..xxxxxxxxxxxxxxx4a3f
mem_limit: 2G
networks:
jenkins-network:
driver: nat
NOTE: If you need to replace agent.jar, jenkins-slave.exe or jenkins-slave.exe.config because you need a different version to the one in the image, create a local folder with the replacement file(s) in it and make a volume mount like this:
volumes:
- YOUR_FOLDER:c:\Persist
The files from your folder will overwrite the ones in the container on boot.
Once the container is running, you can access it with
docker exec -it yourcontainername powershell
based on mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-1903
Visual Studio 2017 Workloads
Environment
based on microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-1803
Visual Studio 2017 Workloads
Environment
based on microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-1803
Visual Studio 2017 Workloads
Environment
Access your container as shown above, then do something like this..
cd \vs
.\vs_enterprise.exe modify --norestart --passive --installPath "c:\buildtools" --add Component.Dotfuscator
It won't give you any feedback, be patient. I use get-process to see when the installer has finished.
If so you might want to check out liveforensics/splunkins, which is this image as a base with an added Splunk Universal Forwarder.
Content type
Image
Digest
Size
4.1 GB
Last updated
about 7 years ago
docker pull liveforensics/jenkinswindowsslave