-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create tests that verifies the Dockerfiles and templates are in sync #2114
Conversation
307753d
to
b905b8f
Compare
b905b8f
to
3c4653d
Compare
} | ||
|
||
& $PSScriptRoot/../common/Invoke-ImageBuilder.ps1 ` | ||
-ImageBuilderArgs "generateDockerfiles --architecture * --os-type *$pathArgs" ` | ||
-ImageBuilderArgs "generateDockerfiles --architecture '*' --os-type '*'$customImageBuilderArgs" ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quoted asterisks are required when running in a linux environment.
@@ -18,13 +18,6 @@ | |||
<Content Include="TestAppArtifacts/*"> | |||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||
</Content> | |||
<Content Include="../../manifest.json"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Continuing this pattern didn't seem like a good choice as we would need to copy pretty much the entire repo as content in order to validate the Dockerfile templates. Instead an ENV is now used to specify the source repo directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be very nice to have. Great solution.
…o template-tests
related #1933
These changes introduce a pre-build validation step in the builds. This works nicely for validating the templates and Dockerfiles are in-sync. It will also provide a nice place to validate the readme tag listing is up-to-date as well. I will back port the common eng infrastructure changes to docker-tools once merged.