Tests/DemoScript.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$ErrorActionPreference = 'Stop'

Remove-Module -Name Image2Docker -ErrorAction Ignore
#Import-Module -Name (Split-Path -Path $PSScriptRoot -Parent)
Import-Module -Name $PSScriptRoot\..\Image2Docker.psd1

Clear-JunctionLink

Get-WindowsArtifact

#$ImagePath = 'D:\data\Virtual Machines\Docker\docker-2016tp5\Virtual Hard Disks\docker-2016tp5.vhdx'
#$ImagePath = "D:\vhds\WindowsServer2016-TP5.2016-08-24.vhdx"
$ImagePath = "D:\data\Virtual Machines\Adaptiva\dc01\Virtual Hard Disks\dc01.vhdx"

Remove-Item -Path C:\ArtofShell\* -Recurse -Force -ErrorAction Ignore

#ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\Apache -Artifact Apache -Verbose

#ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\Apache-DNS -Artifact Apache, DNSServer -Verbose

#ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\AddRemovePrograms -Artifact AddRemovePrograms -Verbose

#ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\IIS -Artifact IIS -Verbose

#ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\DHCPServer -MountPath c:\mounttemp -Artifact DHCPServer -Verbose

ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\DHCPServer-DNSServer-IIS -MountPath c:\mounttemp -Artifact DHCPServer, DNSServer, IIS -Verbose

#ConvertTo-Dockerfile -ImagePath $ImagePath -OutputPath c:\ArtofShell\AllArtifacts -MountPath c:\mounttemp -Verbose