I am trying to create a custom Docker image using jenkins/inbound-agent:jdk17-windowsservercore-ltsc2019 image. In this custom image, I want to install Redgate SQL Change Automation Powershell tool.
I tried all different ways of installing it, however, this doesn't seems to install at all.
The different ways I tried are:
Using chocolatey RUN choco install sqltoolbelt -y --params "/products:'SQL Change Automation Powershell'") - This step just times out after running for a long time
Downloaded the SCAPowershell exe and tried to install it: ENV SCA_URI=https://download.redgate.com/checkforupdates/SCAPowerShell/SCAPowerShell_4.5.22306.32404.exe RUN Invoke-WebRequest -Uri $env:SCA_URI -OutFile C:\SCAPowerShell_4.5.22306.32404.exe; \
Start-Process -FilePath C:\SCAPowerShell_4.5.22306.32404.exe -ArgumentList "--quiet", "--wait", "/IAgreeToTheEula"
- This step doesn't throw any error, but the component is never installed inside C:\Program Files (x86)\Red Gate\ directory where it's supposed to installDownloaded the SQL Toolbelt exe and tried to install it. This step also doesn't throw any error, but the component is never installed inside C:\Program Files (x86)\Red Gate\ directory where it's supposed to install
Installed powershell 7 and tried to install the SQL Change Automation module using: RUN Install-Module SqlChangeAutomation -AcceptLicense -force
This also doesn't install the component inside C:\Program Files (x86)\Red Gate directory where it's supposed to install
Please could someone help me so that I can try to get this installed in my docker image.
I'm already installing some of the prerequisites before installing this Regdate SQL Change Automation tool, like VS Tools, SSMS, SQLLocalDB, VS Community, but it still doesn't install.
Thank you
I got it working after putting below in my Dockerfile. Here's my Dockerfile