Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125856
install_powershell_provider.ps1.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
install_powershell_provider.ps1.erb
View Options
# this file install the Windows Docker package using the DockerMsftProvider powershell provider
$dockerProviderName="DockerMsftProvider"
Write-Information "Installing Package Provider"
$module = Install-PackageProvider NuGet -Force `
<%
if
@nuget_package_provider_version
-%>
-RequiredVersion
<%=
@nuget_package_provider_version
%>
<%
end
-%>
If ($module -eq $null) {
Write-Error "Failed to install NuGet PackagePrivider"
Exit 1
}
Write-Information "Installing Docker Provider"
Install-Module $dockerProviderName -Force `
<%
if
@docker_msft_provider_version
-%>
-RequiredVersion
<%=
@docker_msft_provider_version
%>
<%
end
-%>
$provider = Get-Module -ListAvailable -Name $dockerProviderName
If ($provider -eq $null) {
Write-Error "Failed to install Docker Microsoft Provider"
Exit 1
}
Write-Information "Installing Docker Package"
$package=Install-Package
<%=
@docker_ee_package_name
%>
-ProviderName $dockerProviderName -Force `
<%
if
@version
-%>
-RequiredVersion
<%=
@version
%>
<%
end
-%>
If ($package -eq $null) {
Write-Error "Failed to install Docker Package"
Exit 1
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 9:25 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3357350
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment