Commit graph

14 commits

Author SHA1 Message Date
Cian Johnston
4077a87dca
fix: set MagicDir to tempdir when performing cache probe ()
* fix: set MagicDir to tempdir when performing cache probe

* chore: update envbuilder to b7781d8

* imgutil: get default envbuilder binary path from envbuilder options
2024-09-10 09:47:39 +01:00
Cian Johnston
482a446eb3
chore(internal/provider): refactor cached_image_resource ()
Addresses some non-blocking comments from :

- Extracts some of the functions in cached_image_resource.go to separate internal packages tfutil and imgutil.
- Some other functions are extracted to helpers.go.
- Extracts non-overridable flags to a package-level variable.
- Pre-allocates some slices where possible.
- Removes some unused code and renames some existing code for readability
2024-09-04 16:29:25 +01:00
Cian Johnston
23f2cf5f48
fix(internal/provider): correctly override from extra_env ()
Relates to 

Our previous logic did not pass options from extra_env to envbuilder.RunCacheProbe.
This fixes the logic and adds more comprehensive tests around the overriding logic.
Future commits will refactor this logic some more.
2024-09-04 11:19:25 +01:00
Cian Johnston
f8a49e84ff
ci: push envbuilder image to local registry () 2024-08-12 11:51:06 +01:00
Cian Johnston
c10305910f
feat: add remote_repo_build_mode envbuilder option ()
Adds support for setting the --remote-repo-build-mode Envbuilder option. Defaults to true if not set.
2024-08-09 10:32:30 +01:00
Cian Johnston
72ddd72815
chore: pre-publish tidy ()
* chore: pre-publish tidy

* fixup! chore: pre-publish tidy

* update tf test matrix

* update envbuilder and kaniko fork to latest versions
2024-08-07 16:38:15 +01:00
Cian Johnston
ad8b1fda9e
feat: convert datasource to resource ()
- Convert datasource to resource
- Update examples
- Update tests
2024-08-07 11:49:41 +01:00
Mathias Fredriksson
77ba0fab6f
feat: add repo mode () 2024-08-05 17:35:12 +03:00
Cian Johnston
24b93e754d
chore: set TF_LOG=debug, always pull :latest envbuilder image () 2024-08-05 12:42:32 +01:00
Cian Johnston
88ad94f356
feat: extract envbuilder binary from builder image ()
- Adds workspace_folder parameter.
- Adds functionality to extract the envbuilder binary from the builder image.
- Drive-by: updates provider address.
2024-08-03 19:55:55 +01:00
Cian Johnston
c6d9bf5c27
update module path after being moved from mafredri org () 2024-08-01 23:11:40 +01:00
Cian Johnston
c9e7cb8178
implement first pass at cached image data source ()
implements envbuilder_cached_image data source
2024-08-01 21:26:44 +01:00
Mathias Fredriksson
1a49822fc9 Envbuilder 2024-07-22 17:15:50 +03:00
Mathias Fredriksson
76d8aa974e
Initial commit 2024-07-18 14:43:45 +03:00