Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download 2019-Dev installer media within Dockerfile #717

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jrogers-dlp
Copy link

instead of needing to download the installer and then downloading the media, do it all in the build.

@One-TheOnly
Copy link

One-TheOnly commented Mar 1, 2022

It is not work for me, Step 6/8 no download content, here is the log:


Step 1/8 : FROM mcr.microsoft.com/windows/servercore:ltsc2019




 ---> c703d4d60533


Step 2/8 : ENV ssei "https://go.microsoft.com/fwlink/?linkid=866662"




 ---> Running in 10e7fce2af95


Removing intermediate container 10e7fce2af95


 ---> a2453ca10e5d


Step 3/8 : ENV sa_password="_"     attach_dbs="[]"     ACCEPT_EULA="_"     sa_password_path="C:\ProgramData\Docker\secrets\sa-password"




 ---> Running in 9f76f015353e


Removing intermediate container 9f76f015353e


 ---> 1937ba8c5fb8


Step 4/8 : SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]




 ---> Running in 6be2d929eefc


Removing intermediate container 6be2d929eefc


 ---> a0b45d43ad45


Step 5/8 : RUN Invoke-WebRequest -Uri $env:ssei -OutFile SQL2019-SSEI-Dev.exe




 ---> Running in 1ad0844e6bb9


Removing intermediate container 1ad0844e6bb9


 ---> 8f6a2d219d09


Step 6/8 : RUN ./SQL2019-SSEI-Dev.exe /ACTION=Download /MEDIAPATH=C:/ /MEDIATYPE=CAB /QUIET




 ---> Running in 31de77037d04


Removing intermediate container 31de77037d04


 ---> 2515b7ce4660


Step 7/8 : WORKDIR /




Removing intermediate container ecff14817a0a


 ---> 422ef10ec458


Step 8/8 : RUN ls




 ---> Running in e6c1d6c9dc82








    Directory: C:\


Mode                LastWriteTime         Length Name                          


----                -------------         ------ ----                          


d-r---         2/3/2022  11:30 AM                Program Files                 


d-----         2/3/2022   3:28 AM                Program Files (x86)           


d-r---         2/3/2022   3:31 AM                Users                         


d-----         3/1/2022   3:19 PM                Windows                       


-a----         5/7/2020  12:48 PM           5510 License.txt                   


-a----         3/1/2022   3:19 PM        5946768 SQL2019-SSEI-Dev.exe          








Removing intermediate container e6c1d6c9dc82


 ---> 1966fc0aaeca


Successfully built 1966fc0aaeca


Successfully tagged mssql-server:2019-windows-dev



              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants