Ettore Di Giacinto
c7f9708f90
Add CreateTar to image API
...
Add api call which uses go-container registry to create OCI images from
standard tar archives.
Consume new API when generating final images instead of docker building them
and adapts/add tests as necessary.
This change now allows to carry over xattrs to final images.
Fixes #266
2021-10-29 10:35:03 +02:00
Itxaka
1b35a674ea
Print plugin success messages + print plugin location on load ( #267 )
...
* report plugin state if succeed
We havbe a state field in the plugin response that its not being used
for anything. This patch makes luet print the state reported from the
plugin if its not empty as a way for plugins to report data on success
to users. If the field is empty it will be ignored.
Signed-off-by: Itxaka <igarcia@suse.com>
* Print plugin path
This patch adds the plugin location to the printed plugin list for a
more rich view of the loaded plugins
Signed-off-by: Itxaka <igarcia@suse.com>
2021-10-28 11:42:56 +02:00
Ettore Di Giacinto
5e8a9c75dc
Tag 0.20.4
2021-10-27 12:05:03 +02:00
Ettore Di Giacinto
b5def989ac
Drop unused code
2021-10-27 11:22:06 +02:00
Ettore Di Giacinto
fdb49ce70d
cli: render table/lists only on terminal output
2021-10-27 11:17:38 +02:00
Ettore Di Giacinto
37cc186c0b
delta: trim path when computing src files set
...
The path contains an ending "/" which wouldn't match when we walk dst as
it's not there.
That had the unpleasant effect of creating empty folders in the
destinations
2021-10-27 11:00:10 +02:00
Ettore Di Giacinto
f2f85a2384
ci: Add back -race
2021-10-26 18:05:34 +02:00
Ettore Di Giacinto
9c17432ee9
Tag 0.20.3
2021-10-26 17:34:03 +02:00
Ettore Di Giacinto
9799b7c94b
Add Image reference by pipe, refactor
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
5a7e97d0fb
Update vendor
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
262d09dfbc
Lower message levels
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
b974f44095
Add cache to avoid RAM consumption
...
When we have huge file lists we can burst too much into RAM which would
cause OOMs in certain devices. Use instead a smart cache which
automatically drops to disk when necessary.
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
35fcd868ee
Switch to ondisk also when unpacking FS
...
From benchmarks it seems to be still faster. Add a note for a future
improvement
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
aea3cdff8d
Use ondisk reference for deltas
2021-10-26 16:56:49 +02:00
Ettore Di Giacinto
daa9eb98d2
Walk destination only once when computing delta
...
Avoid the double pass by constructing the list on the fly
2021-10-26 16:56:49 +02:00
Itxaka
1f0324c452
Log debug before failing ( #263 )
...
If a plugin failed, we were skipping the debug info which is kind of
useful :=)
Signed-off-by: Itxaka <igarcia@suse.com>
2021-10-26 11:18:56 +02:00
Ettore Di Giacinto
e705c471eb
Tag 0.20.2
2021-10-26 00:30:12 +02:00
Itxaka
7cd455fff4
Set proper error message on plugin failure
...
Currently we are setting the error message in a no-space full sentence
which is pretty ugly:
| FATA[0000] Pluginluet-cosignat/usr/local/bin/luet-cosignErrorerror while executing plugin: exit status 1
Signed-off-by: Itxaka <igarcia@suse.com>
2021-10-26 00:28:30 +02:00
Ettore Di Giacinto
144c409908
Disable buffer on docker remote
...
This causes to load otherwise the full tarball into memory
2021-10-25 23:57:09 +02:00
Ettore Di Giacinto
f6bb7a9405
Make sure to pull images before generating artifacts
...
Fixes #262
2021-10-25 23:56:38 +02:00
Ettore Di Giacinto
9d3af649f1
Tag 0.20.1
2021-10-24 22:31:20 +02:00
Ettore Di Giacinto
1b1ab6225c
Use table lookup for checking addition files
2021-10-24 21:55:42 +02:00
Ettore Di Giacinto
bdcf26401c
Prepare for tagging 0.20.0
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
21247331e0
Update README
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
b77b71f6cd
cmd: Create output build dir if doesn't exist already
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
bb40b5d1b7
update vendor
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
c220eac061
Move bus to api/core
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
67a07e7c5a
Drop link to moby fork
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
c897bffdfc
Drop untar
2021-10-24 19:07:41 +02:00
Ettore Di Giacinto
52ad2b5cfa
Fixup config protect
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
6ff22d923c
Make default build dir over context temp
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
37a9a3ef55
use containerd to uncompress
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
4a45b5410d
Introduce lock for installation
...
It is used to ensure integrity and that we do install one package at
once. This is to ensure that we extract correctly, and that we are not
too much I/O intensive depending on CPU
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
6b7e77df65
test: drop --race
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
819271b9bd
Fixup tests
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
063f704057
update vendor
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
ebbb3aad27
Use API also when pulling from helpers used in client
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
ad489c2157
tests: pull image before running
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
454a560f4c
Take count of os separator in extraction
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
a0e7e9ba08
ci: split integration tests
2021-10-24 18:26:30 +02:00
Ettore Di Giacinto
acd685b927
Extract with new image API
2021-10-24 18:26:25 +02:00
Ettore Di Giacinto
ab251fefce
update vendor
2021-10-24 18:26:25 +02:00
Ettore Di Giacinto
6a9f19941a
Add crane-based methods for extraction
...
- create a new api package to encapsulate image manipulation
- use new api method to calculate delta
Fixes #258
Fixes #204
Fixes #90
2021-10-24 18:26:08 +02:00
Ettore Di Giacinto
d44befe9ff
tests: add context unit tests
2021-10-23 15:26:45 +02:00
Ettore Di Giacinto
73c6cff15b
Tag 0.19.2
2021-10-23 12:40:55 +02:00
Ettore Di Giacinto
65892f9bfc
ux: Display only success on green
2021-10-23 12:40:55 +02:00
Ettore Di Giacinto
315bfb5a54
Move http timeout to the general configuration
...
Fixes https://github.com/mudler/luet/issues/250 as now it is documented
in the cli --help too.
2021-10-23 11:41:15 +02:00
Ettore Di Giacinto
57c8236184
fixup: cache miss with docker client
2021-10-23 01:50:01 +02:00
Ettore Di Giacinto
4d60795fdc
Tag 0.19.1
2021-10-22 18:44:42 +02:00
Ettore Di Giacinto
6b45b1d61c
ux: rework displaying of success messages
2021-10-22 17:55:38 +02:00