This repository contains Dockerfiles of Jenkins for Docker's for Windows automated build published to the public Docker Hub Registry. The repository contains images for Master and Slave.
Master is a base installation of Jenkins and Git configured in the image
In order to save configurations between exits attach volume to c:/jenkins when starting container.
Slave is optimized for MSbuild and has a list of predefined software:
- ASP.NET v4.5 Framework & Web Features
- MSBuild v14
- Nuget
- Node JS v6.10.1
- JetBrains.ReSharper.CommandLineTools v2016.3
- Nunit Console Runner v3.6.1
- xUnit Console Runner v2.2.0
- Install Docker.
- Download automated build from public Docker Hub Registry:
docker pull asmagin/jenkins-on-windowsservercore
Alternatively, you can build an image from Dockerfile:
docker build -t="asmagin/jenkins-on-windowsservercore" "https://github.com/asmagin/jenkins-on-windowsservercore.git#master:master"
# or
docker build -t="asmagin/jenkins-on-windowsservercore" "https://github.com/asmagin/jenkins-on-windowsservercore.git#master:slave"
- Run Jenkins Master
docker run -it --rm asmagin/jenkins-on-windowsservercore -v c:/hostfolder:c:/jenkins
- Run Jenkins Slave
docker run -it --rm asmagin/jenkins-on-windowsservercore:slave -c "java -jar c:/jenkins/slave.jar -jnlpUrl <master url> -secret <your secret>"
Git clone does not work in Windows Docker container in mounted host volume folder: