Skip to content

Commit

Permalink
Add support for Windows Server 2022 LTSC
Browse files Browse the repository at this point in the history
resolves adamrehn#190
  • Loading branch information
slonopotamus committed Sep 7, 2021
1 parent 62d0e00 commit 41fe7ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ue4docker/infrastructure/WindowsUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class WindowsUtils(object):
19041: "2004",
19042: "20H2",
19043: "21H1",
20348: "ltsc2022",
}

_knownTags = list(_knownTagsByBuildNumber.values())
Expand Down Expand Up @@ -111,11 +112,16 @@ def getDllSrcImage(basetag: str) -> str:
"""
Returns Windows image that can be used as a source for DLLs missing from Windows Server Core base image
"""
# TODO: we also need to use Windows Server image when user specifies custom tags, like '10.0.20348.169'
image = {
"ltsc2022": "mcr.microsoft.com/windows/server"
}.get(basetag, "mcr.microsoft.com/windows")

tag = {
"ltsc2019": "1809",
}.get(basetag, basetag)

return f"mcr.microsoft.com/windows:{tag}"
return f"{image}:{tag}"

@staticmethod
def getKnownBaseTags() -> [str]:
Expand Down

0 comments on commit 41fe7ad

Please sign in to comment.