-
Notifications
You must be signed in to change notification settings - Fork 48
Resolve docker build issues #3691
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
Merged
Merged
Conversation
This file contains hidden or 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
DavidBoike
reviewed
Sep 5, 2023
Member
DavidBoike
left a comment
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.
I'm going to need a walkthrough of these changes but something does have to change with the gitignore path.
…hed to docker deamon and ignoring artifacts in deploy folder that are not needed for docker build and optimized docker file templates by combining ENV and ADD commands to reduce layers and speed up creation.
…-ltsc2022 After analysis it is clear that targeting only the 4.8 tag results in the Windows 2016 base image which we don't need. Specifically targeting "windowsservercore-ltsc2022" as that is the smallest base image. Targeting .NET Framework 4.8 as we don't need any features of 4.8.1 Output of `docker images --digests`: ``` mcr.microsoft.com/dotnet/framework/runtime 4.8 sha256:c63027269c60b6e817900bd003a4600d3e3b6962ca05b24ea50a8bd2ea3a0b1e 41b175c021d2 3 weeks ago 12.2GB mcr.microsoft.com/dotnet/framework/runtime 4.8 sha256:dfe0e4ab872aab24b97e6a86069963b4686fdcbbe67f61257a437f92d7d9bef8 41b175c021d2 3 weeks ago 12.2GB mcr.microsoft.com/dotnet/framework/runtime 4.8-windowsservercore-ltsc2016 sha256:c63027269c60b6e817900bd003a4600d3e3b6962ca05b24ea50a8bd2ea3a0b1e 41b175c021d2 3 weeks ago 12.2GB mcr.microsoft.com/dotnet/framework/runtime 4.8-windowsservercore-ltsc2016 sha256:dfe0e4ab872aab24b97e6a86069963b4686fdcbbe67f61257a437f92d7d9bef8 41b175c021d2 3 weeks ago 12.2GB mcr.microsoft.com/dotnet/framework/runtime latest sha256:c63027269c60b6e817900bd003a4600d3e3b6962ca05b24ea50a8bd2ea3a0b1e 41b175c021d2 3 weeks ago 12.2GB mcr.microsoft.com/dotnet/framework/runtime latest sha256:dfe0e4ab872aab24b97e6a86069963b4686fdcbbe67f61257a437f92d7d9bef8 41b175c021d2 3 weeks ago 12.2GB mcr.microsoft.com/dotnet/framework/runtime 4.8.1 sha256:6a087b1a776023aa636f30960897e9f30d252a7ad310b5fc429456203643d0c6 0df1b551c876 3 weeks ago 5.39GB mcr.microsoft.com/dotnet/framework/runtime 4.8.1 sha256:bb0f56ad8bb606bdd113881d5a2296685acb5a8d8cae09cc9ad4da5089a8dd15 0df1b551c876 3 weeks ago 5.39GB mcr.microsoft.com/dotnet/framework/runtime 4.8.1-windowsservercore-ltsc2022 sha256:6a087b1a776023aa636f30960897e9f30d252a7ad310b5fc429456203643d0c6 0df1b551c876 3 weeks ago 5.39GB mcr.microsoft.com/dotnet/framework/runtime 4.8.1-windowsservercore-ltsc2022 sha256:bb0f56ad8bb606bdd113881d5a2296685acb5a8d8cae09cc9ad4da5089a8dd15 0df1b551c876 3 weeks ago 5.39GB mcr.microsoft.com/dotnet/framework/runtime 4.8-windowsservercore-ltsc2022 sha256:5bbc1f0666ae0709c9f8772bc11428eb123537dae4d74d80d5dd8750e6a32099 98cb310f7a66 3 weeks ago 4.29GB ```
tmasternak
approved these changes
Sep 7, 2023
DavidBoike
reviewed
Sep 7, 2023
src/ServiceControl.DockerImages/ServiceControl.DockerImages.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: David Boike <david.boike@gmail.com>
…from `~/deploy` folder to push to docker daemon. Removed the need for `~/dockerfiles/.gitignore`
bording
previously requested changes
Sep 11, 2023
src/ServiceControl.DockerImages/ServiceControl.DockerImages.csproj
Outdated
Show resolved
Hide resolved
src/ServiceControl.DockerImages/ServiceControl.DockerImages.csproj
Outdated
Show resolved
Hide resolved
src/ServiceControl.DockerImages/ServiceControl.DockerImages.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: Brandon Ording <bording@gmail.com>
…proj Co-authored-by: Brandon Ording <bording@gmail.com>
…les` as that is the first task that uses it.
…tifacts from `~/deploy` folder to push to docker daemon. Removed the need for `~/dockerfiles/.gitignore`" This reverts commit a80c233. # Conflicts: # src/ServiceControl.DockerImages/ServiceControl.DockerImages.csproj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ServiceControl.DockerImagesproject output folder