-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Implement worker as a .NET Core app #18
Conversation
My Java is a bit rusty, but the C# looks to me. |
Yeah, Nate did a great job keeping the code concise. We're working on a proposal to clean up the dockerfile to have a more optimized image. |
@natemcmaster to reduce the final image size, instead of the default base image, I think you can get away with this:
|
@natemcmaster @SteveLasker so you'd have the above and then do what you're already doing in the same dockerfile
the resulting image size is not too bad |
@bfirsh I've tested that this works end-to-end |
Full Dockerfile
|
LGTM |
@friism I quite like the neatness of the smaller Dockerfile. What's the diff in image size? Maybe we can do this in a follow-up PR for the sake of getting this moving. |
@bfirsh it's ~600MB |
The size is fairly important, at least until we get the build and run (fat/thin) containers worked out. Having an image half the size at ~300 mb is quite a difference. From: Michael Friis [mailto:notifications@github.com] @bfirsh https://github.com/bfirsh it's ~600MB — |
FWIW, we intend to create an Alpine-based version of the dotnet image for the next release. This should cut much of the fat that comes from the jessie base image. Cref dotnet/dotnet-docker#22 cc @dleeapho |
Modified schema to reflect new designs
This replaces the Java worker with a .NET Core implementation using the RC2/Preview 1 image.
cc @SteveLasker @HaishiBai @Eilon @glennc