https://github.com/EliiseS/terraform-pester-devcontainer-example
https://github.com/EliiseS/terraform-pester-devcontainer-example
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/EliiseS/terraform-pester-devcontainer-example
- Owner: EliiseS
- Created: 2020-07-07T08:56:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T20:00:08.000Z (almost 5 years ago)
- Last Synced: 2024-10-18T07:15:54.227Z (6 months ago)
- Language: PowerShell
- Size: 6.84 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- jimsghstars - EliiseS/terraform-pester-devcontainer-example - (PowerShell)
README
# terraform-pester-devcontainer-example
This is an example terraform project with Pester testing and a devcontainer.
## Azure Devops pipelines
- [Classic pipeline](.azdo/classic-pipeline.yml)
- [Pipeline utilizing the devcontainer](.azdo/devcontainer-pipeline.yml)
- [Pipeline utilizing the devcontainer with caching](.azdo/devcontainer-caching-pipeline.yml)## Execute commands in devcontainer locally
```ps
docker run `
-e AZURE_DEVOPS_EXT_PAT=$env:AZDO_PERSONAL_ACCESS_TOKEN `
-e AZDO_PERSONAL_ACCESS_TOKEN=$env:AZDO_PERSONAL_ACCESS_TOKEN `
-e AZDO_ORG_SERVICE_URL=$env:AZDO_ORG_SERVICE_URL `
--entrypoint /opt/microsoft/powershell/7/pwsh `
-v :/src `
--workdir /src `
devcontainer `
-c Invoke-Pester
```