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

Wrap base image builds with the nitric membrane and use base images for nitric run #359

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

tjholm
Copy link
Member

@tjholm tjholm commented Sep 28, 2022

Benefits:

  • Faster local development (especially on macOS and Windows)
  • Simplifies hot-reloading setup
  • Ability to support custom dockerfiles in future
  • Ability to support remote images in future
  • Removes need to build development images during nitric up (this should speed up deploy builds as well)
  • Removes need to separately install node modules during nitric up (this should speed up deploy builds as well).
  • nitric run provides better indication of final build (base images are the same as production deployments).

@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2022

Codecov Report

Base: 32.22% // Head: 27.08% // Decreases project coverage by -5.14% ⚠️

Coverage data is based on head (d1bb044) compared to base (599296a).
Patch coverage: 18.39% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #359      +/-   ##
===========================================
- Coverage    32.22%   27.08%   -5.15%     
===========================================
  Files           52       52              
  Lines         4990     4560     -430     
===========================================
- Hits          1608     1235     -373     
+ Misses        3224     3208      -16     
+ Partials       158      117      -41     
Flag Coverage Δ
unittests 27.08% <18.39%> (-5.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/codeconfig/codeconfig.go 7.74% <0.00%> (+0.16%) ⬆️
pkg/provider/pulumi/aws/aws.go 49.15% <0.00%> (-0.17%) ⬇️
pkg/provider/pulumi/azure/containerapp.go 0.00% <0.00%> (ø)
pkg/provider/pulumi/common/image.go 0.00% <0.00%> (ø)
pkg/provider/pulumi/gcp/gcp.go 39.36% <0.00%> (-0.11%) ⬇️
pkg/runtime/types.go 85.71% <ø> (+1.84%) ⬆️
pkg/runtime/wrapper.go 0.00% <0.00%> (ø)
pkg/runtime/golang.go 18.75% <20.00%> (-56.74%) ⬇️
pkg/runtime/javascript.go 27.27% <40.00%> (-53.38%) ⬇️
pkg/runtime/typescript.go 27.27% <40.00%> (-45.68%) ⬇️
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

chore: cleanup unused code.


chore: Output container build logs to debug.


chore: use shell format for javascript and python


chore: fix copy of golang source files.


chore: Make sure available services print.


chore: consistently named docker files.


chore: update .dockerignore to improve cache consistency for multiple functions.


chore: make fmt.


chore: update tests.


chore: go mod tidy.
@tjholm tjholm merged commit bc42a11 into nitrictech:develop Oct 8, 2022
@nitric-bot
Copy link
Contributor

🎉 This PR is included in version 1.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants