Skip to content

Commit eb03466

Browse files
Use main branch (#441)
* Fix jenkins agent name * Use main branch
1 parent 9d3eb75 commit eb03466

22 files changed

Lines changed: 40 additions & 40 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# dockerfiles-windows
2-
[![Build status](https://ci.appveyor.com/api/projects/status/adxm3egqc5md3fe3/branch/master?svg=true)](https://ci.appveyor.com/project/StefanScherer/dockerfiles-windows/branch/master)
2+
[![Build status](https://ci.appveyor.com/api/projects/status/adxm3egqc5md3fe3/branch/main?svg=true)](https://ci.appveyor.com/project/StefanScherer/dockerfiles-windows/branch/main)
33

44
Various Dockerfiles for Windows. Most of these can be run as Windows Containers on Windows 10, Windows Server 2016, Windows Server 1803 and Windows Server 2019.
55

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Write-Host Starting build
44

55
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) {
66
Write-Host Pull request $env:APPVEYOR_PULL_REQUEST_NUMBER
7-
$files = $(git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD master))
7+
$files = $(git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD main))
88
} else {
99
Write-Host Branch $env:APPVEYOR_REPO_BRANCH
1010
$files = $(git diff --name-only HEAD~1)

deploy.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ErrorActionPreference = 'Stop';
22

3-
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER -Or ! $env:APPVEYOR_REPO_BRANCH.Equals("master")) {
3+
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER -Or ! $env:APPVEYOR_REPO_BRANCH.Equals("main")) {
44
Write-Host Nothing to deploy.
55
Exit 0
66
}
@@ -24,7 +24,7 @@ $auth64 = [Convert]::ToBase64String($auth)
2424

2525
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) {
2626
Write-Host Pull request $env:APPVEYOR_PULL_REQUEST_NUMBER
27-
$files = $(git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD master))
27+
$files = $(git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD main))
2828
} else {
2929
Write-Host Branch $env:APPVEYOR_REPO_BRANCH
3030
$files = $(git diff --name-only HEAD~1)

diskspd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
A feature-rich and versatile storage testing tool, Diskspd (version 2.0.17) combines robust and granular IO workload definition with flexible runtime and output options, creating an ideal tool for synthetic storage subsystem testing and validation.
55

6-
* [Dockerfile](https://github.com/StefanScherer/dockerfiles-windows/blob/master/diskspd/Dockerfile)
6+
* [Dockerfile](https://github.com/StefanScherer/dockerfiles-windows/blob/main/diskspd/Dockerfile)
77

88
See also https://aka.ms/diskspd
99

dockertls/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ docker run --rm `
144144

145145
## See also
146146

147-
* [Dockerfile](https://github.com/StefanScherer/dockerfiles-windows/blob/master/dockertls/Dockerfile)
147+
* [Dockerfile](https://github.com/StefanScherer/dockerfiles-windows/blob/main/dockertls/Dockerfile)
148148
* [Protect the Docker daemon socket](https://docs.docker.com/engine/security/https/) docs at docker.com
149149
* [DockerTLS](https://github.com/Microsoft/Virtualization-Documentation/tree/master/windows-server-container-tools/DockerTLS) in Microsoft/Virtualization-Documentation repo

golang/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The only reason for this image is to provide a Golang + Git image as Nanoserver
66

77
# Supported tags and respective Dockerfile links
88

9-
* 1.8beta2, latest [(Dockerfile)](https://github.com/StefanScherer/dockerfiles-windows/blob/master/golang/Dockerfile)
9+
* 1.8beta2, latest [(Dockerfile)](https://github.com/StefanScherer/dockerfiles-windows/blob/main/golang/Dockerfile)
1010

1111
# What is Go?
1212
Go (a.k.a., Golang) is a programming language first developed at Google. It is a statically-typed language with syntax loosely derived from C, but with additional features such as garbage collection, type safety, some dynamic-typing capabilities, additional built-in types (e.g., variable-length arrays and key-value maps), and a large standard library.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
FROM openjdk:8-windowsservercore
22

33
ENV JENKINS_SWARM_VERSION 3.3
4-
ENV HOME /jenkins-slave
4+
ENV HOME /jenkins-agent
55

6-
RUN mkdir \jenkins-slave
6+
RUN mkdir \jenkins-agent
77
RUN powershell -Command Invoke-WebRequest $('https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/swarm-client/{0}/swarm-client-{0}.jar' -f $env:JENKINS_SWARM_VERSION) -OutFile 'swarm-client.jar' -UseBasicParsing ;
88

9-
COPY jenkins-slave.cmd /jenkins-slave.cmd
9+
COPY jenkins-agent.cmd /jenkins-agent.cmd
1010

11-
VOLUME C:\\jenkins-slave
11+
VOLUME C:\\jenkins-agent
1212

13-
ENTRYPOINT [ "cmd", "/C", "C:\\jenkins-slave.cmd" ]
13+
ENTRYPOINT [ "cmd", "/C", "C:\\jenkins-agent.cmd" ]

jenkins-swarm-agent/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Jenkins swarm agent
2+
3+
A Windows Jenkins Swarm agent running in a Windows Docker container.
4+
Based on the linux version [csanchez/jenkins-swarm-agent](https://github.com/carlossg/jenkins-swarm-agent-docker).
5+
6+
## Building the container image
7+
8+
```
9+
docker build -t jenkins-swarm-agent .
10+
```
11+
12+
## Running the container
13+
14+
To run a Docker container passing [any parameter](https://wiki.jenkins-ci.org/display/JENKINS/Swarm+Plugin#SwarmPlugin-AvailableOptions) to the agent
15+
16+
```
17+
docker run jenkins-swarm-agent -master http://192.168.99.100:8080 -name windows-agent -username jenkins -password jenkins -executors 1
18+
```

jenkins-swarm-agent/build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker build -t jenkins-swarm-agent .

0 commit comments

Comments
 (0)