Add image build workflow
This change adds a new workflow that builds the volume test images and pushes them to a remote registry. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
22
script/setup/enable_docker_tls_on_windows.ps1
Normal file
22
script/setup/enable_docker_tls_on_windows.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
Param(
|
||||
[parameter(Mandatory=$true)]
|
||||
[string[]]$IPAddresses
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$IPAddresses += "127.0.0.1"
|
||||
$IPParams = $IPAddresses -join ","
|
||||
mkdir $env:USERPROFILE\.docker
|
||||
|
||||
docker run --isolation=hyperv --user=ContainerAdministrator --rm `
|
||||
-e SERVER_NAME=$(hostname) `
|
||||
-e IP_ADDRESSES=$IPParams `
|
||||
-v "c:\programdata\docker:c:\programdata\docker" `
|
||||
-v "$env:USERPROFILE\.docker:c:\users\containeradministrator\.docker" stefanscherer/dockertls-windows:2.5.5
|
||||
|
||||
if ($LASTEXITCODE) {
|
||||
Throw "Failed to setup Docker TLS: $LASTEXITCODE"
|
||||
}
|
||||
|
||||
Stop-Service docker
|
||||
Start-Service docker
|
||||
Reference in New Issue
Block a user