* someone wants to reference the test-proxy startup scripts externally. to make this easy on them we're parameterizing the root of the eng/common for easy use in that scenario * two leading $ signs on the definition of the certificate path was causing some issues! Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
26 lines
819 B
YAML
26 lines
819 B
YAML
parameters:
|
|
rootFolder: '$(Build.SourcesDirectory)'
|
|
targetVersion: ''
|
|
templateRoot: '$(Build.SourcesDirectory)'
|
|
|
|
steps:
|
|
- pwsh: |
|
|
${{ parameters.templateRoot }}/eng/common/scripts/trust-proxy-certificate.ps1
|
|
displayName: 'Language Specific Certificate Trust'
|
|
|
|
- pwsh: |
|
|
docker info
|
|
displayName: 'Dump active docker information'
|
|
|
|
- pwsh: |
|
|
${{ parameters.templateRoot }}/eng/common/testproxy/docker-start-proxy.ps1 -Mode start -TargetFolder "${{ parameters.rootFolder }}" -VersionOverride="${{ parameters.targetVersion }}"
|
|
displayName: 'Run the docker container'
|
|
|
|
- pwsh: |
|
|
docker container ls -a
|
|
displayName: Check running container
|
|
|
|
- pwsh: |
|
|
Write-Host "##vso[task.setvariable variable=PROXY_MANUAL_START]true"
|
|
displayName: 'Set PROXY_MANUAL_START'
|