Skip to content
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

Add Build Image for dotnetcore3.1 #25

Merged
merged 6 commits into from
Aug 27, 2021

Conversation

chrisoverzero
Copy link
Contributor

...and Get make pr to Work

Issue #, if available: #13

Description of changes:

Adds a dotnetcore3.1 build image in the style of the other build images – pulling its base from Public ECR as Python 3.9 does. The pre-invocation of dotnet is from LambCI, and attributed appropriately.

Notes:

  • It took some effort to to get make pr working correctly. I tried to keep the changes for that to a minimum.
  • pytest wants the unit tests to be run in random order. I don't know enough about it to know whether that plugin is loaded for everyone or just for me, so I did not add it.
  • I don't know how these get mirrored to Public ECR, but it should end up there, too. Not only on Docker Hub.
  • I set AWS_EXECUTION_ENV=AWS_Lambda_dotnetcore3.1 for the build image, but that should be set in the emulation image, or whatever it is that's used for sam local invoke.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@chrisoverzero chrisoverzero force-pushed the feature/dotnetcore3.1 branch from b9476a7 to 8b32a16 Compare August 18, 2021 20:49
@chrisoverzero
Copy link
Contributor Author

I noticed now that other pull requests go against the develop branch. But the contributing guidelines say this:

You are working against the latest source on the main branch.

If I should rebase and point this elsewhere, please do let me know.

@hoffa hoffa added dotnet enhancement New feature or request runtime labels Aug 23, 2021
Copy link

@hoffa hoffa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this PR!

If I should rebase and point this elsewhere, please do let me know.

We're indeed developing against develop, sorry for the confusion! I've updated the docs.

build-image-src/Dockerfile-dotnetcore31 Outdated Show resolved Hide resolved
@chrisoverzero chrisoverzero force-pushed the feature/dotnetcore3.1 branch from 2fddba4 to 495a501 Compare August 27, 2021 01:21
@chrisoverzero chrisoverzero changed the base branch from main to develop August 27, 2021 01:22
@chrisoverzero chrisoverzero force-pushed the feature/dotnetcore3.1 branch from 495a501 to f4ee642 Compare August 27, 2021 01:24
@chrisoverzero
Copy link
Contributor Author

chrisoverzero commented Aug 27, 2021

Ecch, I'm not super adroit at rebasing across fork and branch, but I believe that's done it.

Thanks so much!

...and Get `make pr` to Work
- Suppress First-Time Run Messages
- Redirect Nuget Warmup Output
- Justify Nuget Warmup Procedure
Somehow, I failed to notice that the very next line was also setting
environment variables.
...Which Is Compatible with aws-lambda-builders

(a.k.a. `sam build`)
@chrisoverzero chrisoverzero force-pushed the feature/dotnetcore3.1 branch from 304cd44 to 42a3811 Compare August 27, 2021 19:14
@sriram-mv sriram-mv merged commit eacca99 into aws:develop Aug 27, 2021
@hoffa
Copy link

hoffa commented Sep 7, 2021

The image is now available as public.ecr.aws/sam/build-dotnetcore3.1. 🎉 Thanks a lot for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet enhancement New feature or request runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants