Skip to content

Commit b4f0773

Browse files
relativityboyDonovan Walker
andauthored
Update PostgreSQL to 11.7 wsc:ltsc2016 -> nanoserver:10.0.14383 (#438)
Co-authored-by: Donovan Walker <[email protected]>
1 parent f3bfcd2 commit b4f0773

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

postgres/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2016 AS download
22

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

5-
ENV PG_VERSION 10.2-1
5+
ENV PG_VERSION 11.7-1
66

7-
RUN Invoke-WebRequest $('https://get.enterprisedb.com/postgresql/postgresql-{0}-windows-x64-binaries.zip' -f $env:PG_VERSION) -OutFile 'postgres.zip' -UseBasicParsing ; \
7+
RUN Invoke-WebRequest $('http://get.enterprisedb.com/postgresql/postgresql-{0}-windows-x64-binaries.zip' -f $env:PG_VERSION) -OutFile 'postgres.zip' -UseBasicParsing ; \
88
Expand-Archive postgres.zip -DestinationPath C:\ ; \
99
Remove-Item postgres.zip
1010

11-
RUN Invoke-WebRequest 'http://download.microsoft.com/download/0/5/6/056DCDA9-D667-4E27-8001-8A0C6971D6B1/vcredist_x64.exe' -OutFile vcredist_x64.exe ; \
11+
RUN Invoke-WebRequest 'http://download.microsoft.com/download/0/6/4/064F84EA-D1DB-4EAA-9A5C-CC2F0FF6A638/vc_redist.x64.exe' -OutFile vcredist_x64.exe ; \
1212
Start-Process vcredist_x64.exe -ArgumentList '/install', '/passive', '/norestart' -NoNewWindow -Wait ; \
1313
Remove-Item vcredist_x64.exe
1414

1515
FROM mcr.microsoft.com/windows/nanoserver:10.0.14393.2068
1616

1717
COPY --from=download /pgsql /pgsql
18-
COPY --from=download /windows/system32/msvcp120.dll /pgsql/bin/msvcp120.dll
19-
COPY --from=download /windows/system32/msvcr120.dll /pgsql/bin/msvcr120.dll
18+
COPY --from=download /windows/system32/VCRUNTIME140.dll /pgsql/bin/VCRUNTIME140.dll
19+
COPY --from=download /windows/system32/msvcp140.dll /pgsql/bin/msvcp140.dll
2020

2121
RUN setx /M PATH "C:\pgsql\bin;%PATH%"
2222

postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PostgreSQL
22

3-
This is a small test of PostgreSQL 10.1 in a NanoServer container.
3+
This is a small test of PostgreSQL 11.7 in a NanoServer container.
44

55
```
66
docker build -t postgres .

0 commit comments

Comments
 (0)