Skip to content

Commit 7ce09b0

Browse files
author
TP Honey
authored
windows 1809 docker build pin (#384)
1 parent 024f906 commit 7ce09b0

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.drone.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ steps:
7979
when:
8080
event: [push, tag]
8181
- name: build ecr plugin
82-
image: plugins/docker
82+
image: tphoney/docker:windows-1809-amd64
83+
pull: never
8384
settings:
8485
dockerfile: docker/ecr/Dockerfile.windows.amd64.1809
85-
repo: plugins/docker
86+
repo: plugins/ecr
8687
username:
8788
from_secret: docker_username
8889
password:
@@ -93,7 +94,8 @@ steps:
9394
when:
9495
event: [push, tag]
9596
- name: build gcr plugin
96-
image: plugins/docker
97+
image: tphoney/docker:windows-1809-amd64
98+
pull: never
9799
settings:
98100
dockerfile: docker/gcr/Dockerfile.windows.amd64.1809
99101
repo: plugins/gcr
@@ -107,7 +109,8 @@ steps:
107109
when:
108110
event: [push, tag]
109111
- name: build acr plugin
110-
image: plugins/docker
112+
image: tphoney/docker:windows-1809-amd64
113+
pull: never
111114
settings:
112115
dockerfile: docker/acr/Dockerfile.windows.amd64.1809
113116
repo: plugins/acr

docker/docker/Dockerfile.windows.amd64.1809

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# escape=`
2-
FROM mcr.microsoft.com/windows/servercore:1809 as download
2+
# using 1809-KB5021237-amd64 as base image, 1809-KB5022286-amd64 does not work
3+
FROM mcr.microsoft.com/windows/servercore:1809-KB5021237 as download
34

45
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
56

6-
ENV DOCKER_VERSION 18.09.1
7+
ENV DOCKER_VERSION 19.03.1
78

89
RUN Invoke-WebRequest 'http://constexpr.org/innoextract/files/innoextract-1.6-windows.zip' -OutFile 'innoextract.zip' -UseBasicParsing ; `
910
Expand-Archive innoextract.zip -DestinationPath C:\ ; `
@@ -13,14 +14,16 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
1314
Invoke-WebRequest $('https://github.com/docker/toolbox/releases/download/v{0}/DockerToolbox-{0}.exe' -f $env:DOCKER_VERSION) -OutFile 'dockertoolbox.exe' -UseBasicParsing
1415
RUN /innoextract.exe dockertoolbox.exe
1516

16-
FROM mcr.microsoft.com/windows/nanoserver:1809
17+
FROM mcr.microsoft.com/windows/nanoserver:1809-KB5021237-amd64
18+
1719
USER ContainerAdministrator
1820

1921
LABEL maintainer="Drone.IO Community <[email protected]>" `
2022
org.label-schema.name="Drone Docker" `
2123
org.label-schema.vendor="Drone.IO Community" `
2224
org.label-schema.schema-version="1.0"
2325

26+
RUN mkdir C:\bin
2427
COPY --from=download /windows/system32/netapi32.dll /windows/system32/netapi32.dll
2528
COPY --from=download /app/docker.exe C:/bin/docker.exe
2629
ADD release/windows/amd64/drone-docker.exe C:/bin/drone-docker.exe

0 commit comments

Comments
 (0)