Commit fbd8af5f authored by Steve Azzopardi's avatar Steve Azzopardi

Change helper image to server core

naoserver only allows powershell 6 to be installed, which is something
the Runner does not support yet. Adding support for powershell 6 is
something we want to do in the future
gitlab-org/gitlab-runner#3291. We can just add
support just for the helper image but as described in
gitlab-org/gitlab-runner#3896 (comment 157830131)
this will turn out messy. Change the helper image to use server core
instead to use powershell 5

Reference gitlab-org/gitlab-runner#3896
parent fb0ccaee
......@@ -52,7 +52,7 @@ image: $CI_IMAGE
.windows1803: &windows1803
variables: &windows1803_variables
<<: *windows_base_variables
WINDOWS_VERSION: nanoserver1803
WINDOWS_VERSION: servercore1803
tags:
- windows-1803
- shell
......@@ -60,7 +60,7 @@ image: $CI_IMAGE
.windows1809: &windows1809
variables: &windows1809_variables
<<: *windows_base_variables
WINDOWS_VERSION: nanoserver1809
WINDOWS_VERSION: servercore1809
tags:
- windows-1809
- shell
......@@ -511,12 +511,12 @@ development docker images:
tags:
- docker
development nanoserver1803 helper docker image:
development servercore1803 helper docker image:
<<: *release_development
<<: *windows1803
extends: .build_windows_docker_images
development nanoserver1809 helper docker image:
development servercore1809 helper docker image:
<<: *release_development
<<: *windows1809
extends: .build_windows_docker_images
......@@ -542,7 +542,7 @@ bleeding edge docker images:
name: bleeding_edge/docker_images
url: https://hub.docker.com/r/gitlab/gitlab-runner/tags/
bleeding edge nanoserver1803 docker images:
bleeding edge servercore1803 docker images:
<<: *release_bleeding_edge
<<: *windows1803
extends: .build_windows_docker_images
......@@ -553,7 +553,7 @@ bleeding edge nanoserver1803 docker images:
name: bleeding_edge/docker_images/windows1803
url: https://hub.docker.com/r/gitlab/gitlab-runner/tags/
bleeding edge nanoserver1809 docker images:
bleeding edge servercore1809 docker images:
<<: *release_bleeding_edge
<<: *windows1809
extends: .build_windows_docker_images
......@@ -585,7 +585,7 @@ stable docker images:
name: stable/docker_images
url: https://hub.docker.com/r/gitlab/gitlab-runner/tags/
stable nanoserver1803 docker images:
stable servercore1803 docker images:
<<: *release_stable
<<: *windows1803
extends: .build_windows_docker_images
......@@ -596,7 +596,7 @@ stable nanoserver1803 docker images:
name: stable/docker_images/windows1803
url: https://hub.docker.com/r/gitlab/gitlab-runner/tags/
stable nanoserver1809 docker images:
stable servercore1809 docker images:
<<: *release_stable
<<: *windows1809
extends: .build_windows_docker_images
......
......@@ -22,13 +22,10 @@ RUN powershell -File .\checksum.ps1 -TargetFile git-lfs.zip -ExpectedHash ${Env:
RUN Expand-Archive -Path git.zip -DestinationPath git
RUN Expand-Archive -Path git-lfs.zip -DestinationPath git-lfs
FROM mcr.microsoft.com/windows/nanoserver:1803
FROM mcr.microsoft.com/windows/servercore:1803
USER ContainerAdministrator
# https://github.com/StefanScherer/dockerfiles-windows/tree/master/golang-issue-21867
COPY --from=builder ["/windows/system32/netapi32.dll", "/windows/system32/netapi32.dll"]
COPY --from=builder ["git", "C:\\Program Files\\git"]
COPY --from=builder ["git-lfs", "C:\\Program Files\\git-lfs"]
RUN setx PATH "%PATH%;C:\Program Files\git\cmd;C:\Program Files\git-lfs;C:\Program Files\gitlab-runner-helper" /M
......
......@@ -22,13 +22,10 @@ RUN powershell -File .\checksum.ps1 -TargetFile git-lfs.zip -ExpectedHash ${Env:
RUN Expand-Archive -Path git.zip -DestinationPath git
RUN Expand-Archive -Path git-lfs.zip -DestinationPath git-lfs
FROM mcr.microsoft.com/windows/nanoserver:1809_amd64
FROM mcr.microsoft.com/windows/servercore:1809_amd64
USER ContainerAdministrator
# https://github.com/StefanScherer/dockerfiles-windows/tree/master/golang-issue-21867
COPY --from=builder ["/windows/system32/netapi32.dll", "/windows/system32/netapi32.dll"]
COPY --from=builder ["git", "C:\\Program Files\\git"]
COPY --from=builder ["git-lfs", "C:\\Program Files\\git-lfs"]
RUN setx PATH "%PATH%;C:\Program Files\git\cmd;C:\Program Files\git-lfs;C:\Program Files\gitlab-runner-helper" /M
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment