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

feat: initial support for Compose Build spec #52

Merged
merged 1 commit into from
Sep 28, 2024
Merged

feat: initial support for Compose Build spec #52

merged 1 commit into from
Sep 28, 2024

Conversation

aksiksi
Copy link
Owner

@aksiksi aksiksi commented Sep 28, 2024

The idea is we generate a systemd (one-shot) service per build that users can run manually to build the container and add it to the runtime's image store.

Users can also pass in -build=true to enable the build service to run as a dependency for the container. However, keeping this config would result in a new build on every restart of the system (or root target), which would implicitly result in an update of the container. So, users will need to re-generate the config with -build=false.

For now, we do not support Git repo build contexts (i.e., pull from repo before building).

@aksiksi aksiksi linked an issue Sep 28, 2024 that may be closed by this pull request
Copy link

codecov bot commented Sep 28, 2024

Codecov Report

Attention: Patch coverage is 77.19298% with 13 lines in your changes missing coverage. Please review.

Project coverage is 74.13%. Comparing base (c432239) to head (ecad6e9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
compose.go 71.42% 6 Missing and 4 partials ⚠️
nix.go 85.71% 1 Missing and 1 partial ⚠️
main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #52      +/-   ##
==========================================
+ Coverage   73.34%   74.13%   +0.79%     
==========================================
  Files           6        6              
  Lines         769      812      +43     
==========================================
+ Hits          564      602      +38     
- Misses        164      165       +1     
- Partials       41       45       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aksiksi aksiksi force-pushed the build-spec branch 5 times, most recently from dd1ccb0 to 775df6d Compare September 28, 2024 19:41
The idea is we generate a systemd (one-shot) service per build that
users can run _manually_ to build the container and add it to the runtime's
image store.

Users can also pass in `-build=true` to enable the build service to run
as a dependency for the container. However, keeping this config would result in
a _new_ build on every restart of the system (or root target), which would
implicitly result in an update of the container.

For now, we do not support Git repo build contexts (i.e., pull from repo
before building).
@aksiksi aksiksi merged commit e1f0585 into main Sep 28, 2024
5 of 6 checks passed
@aksiksi aksiksi deleted the build-spec branch September 28, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Compose Build spec
1 participant