forked from puppetlabs/puppetdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Setup Windows container build env
- Add Azure Pipelines invocation to enable environment setup - Relies on puppet_docker_tools 0.2.0+ which has removed calls to the docker-api gem and replaced them with vanilla docker command invocations, so as to support Windows
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$ErrorActionPreference = 'Stop' | ||
|
||
function Get-CurrentDirectory | ||
{ | ||
$thisName = $MyInvocation.MyCommand.Name | ||
[IO.Path]::GetDirectoryName((Get-Content function:$thisName).File) | ||
} | ||
|
||
# installs gems for build and test and grabs base images | ||
function Invoke-ContainerBuildSetup | ||
{ | ||
Push-Location (Get-CurrentDirectory) | ||
bundle install --path '.bundle/gems' | ||
bundle exec puppet-docker update-base-images ubuntu:16.04 | ||
Pop-Location | ||
} |