Ettore Di Giacinto
c13a2174c4
Try to chown after copy
2021-03-06 18:49:14 +01:00
Ettore Di Giacinto
f07cf6c245
Add tests for file search
2021-03-06 18:49:14 +01:00
Ettore Di Giacinto
515017cabd
ci: login with sudo -E
2021-03-06 16:52:20 +01:00
Ettore Di Giacinto
0bfb33db92
Allow to set db/rootfs from CLI in cleanup
2021-03-06 11:28:39 +01:00
Ettore Di Giacinto
c9c24dd174
Add integration test
2021-03-06 10:41:15 +01:00
Ettore Di Giacinto
194cfda8a4
Pass by the cli args to the underlying system struct
...
We didn't set previously what we catched from CLI. Note, this is a
temporary solution until we refactor the cli code
Fixes #186
2021-03-06 10:21:49 +01:00
Ettore Di Giacinto
233429bbeb
Allow to search by file
...
Also make possible to retrieve the artifact when searching for matches
between repositories list. This made possible to show the package list
when calling `luet search`.
2021-02-28 18:42:58 +01:00
Ettore Di Giacinto
d84f6b31fd
Add database get command
2021-02-28 18:42:16 +01:00
Ettore Di Giacinto
98b01ce00b
Tag 0.11.2
2021-02-22 14:46:36 +01:00
Ettore Di Giacinto
749a4cb615
Add --backend-args
...
Allow to add arguments to the backend build arguments
Fixes #146
2021-02-22 13:49:29 +01:00
Ettore Di Giacinto
57e19c61e7
Start spinner before pulling docker artifacts
2021-02-22 11:54:09 +01:00
Ettore Di Giacinto
5ee1e28b9c
Display informative message when pulling docker artifacts
2021-02-22 11:50:52 +01:00
Ettore Di Giacinto
21bd76af9c
Uncomplicate runCommand and return command output
...
Fixes #189
2021-02-22 11:44:46 +01:00
Ettore Di Giacinto
89bd7c2281
Tag 0.11.1
2021-02-17 13:58:21 +01:00
Ettore Di Giacinto
49d7efa9ea
Update vendor
2021-02-17 13:01:36 +01:00
Ettore Di Giacinto
b3e3abec8f
Fixup spinner data race
...
Add spinner lock
2021-02-17 13:01:32 +01:00
Ettore Di Giacinto
92e73051a0
Initialize cached in singleton
2021-02-17 09:34:54 +01:00
Ettore Di Giacinto
fd7405c2cc
Add inmemory DB integration test
2021-02-15 18:53:56 +01:00
Ettore Di Giacinto
2448f3175e
Initialize cache db if empty
2021-02-15 18:53:37 +01:00
Ettore Di Giacinto
101df40eec
Merge pull request #183 from mudler/docker-debug-output
...
Add realtime output for building phase
2021-02-13 12:02:20 +01:00
Daniele Rondina
c22adb3a47
compiler: Move spinner at the low level
2021-02-13 09:28:54 +01:00
Ettore Di Giacinto
b93357e36c
Tag 0.11.0
2021-02-10 09:07:02 +01:00
Ettore Di Giacinto
518fb16067
Add IsVirtual() to compile spec
2021-02-09 19:05:16 +01:00
Ettore Di Giacinto
4d9297e3da
Be sure to copy exact folder structure when generating final images
...
'COPY *' has a different behavior than 'COPY .' - when regexes are
involved, COPY behave differently, by unpacking directory content to the
root.
Enhance unit test to cover the scenario as well
2021-02-09 18:27:53 +01:00
Ettore Di Giacinto
544895e051
Handle empty packages when pushing final images
...
We used to create dockerfiles blindly assuming there is content, but
that's not the case for virtual packages.
Due to https://github.com/moby/moby/issues/38039 we are forced for a
"unpleasant" workaround, as we can't create empty FROM scratch images
and export them.
2021-02-09 18:27:53 +01:00
Ettore Di Giacinto
fd80bb526e
Add DirectoryIsEmpty
2021-02-09 16:51:10 +01:00
Daniele Rondina
c1fe3278fa
backend: Add realtime output on building phase
...
The realtime output could be configured through
LUET_GENERAL__SHOW_BUILD_OUTPUT environment
variable or related config option or through
`--live-output` option.
2021-02-02 12:58:34 +01:00
Daniele Rondina
2854c68209
logger: Add ln option for writer log
2021-02-01 19:10:05 +01:00
Ettore Di Giacinto
505f07f056
Add asciinema to README
2021-02-01 12:25:31 +01:00
Ettore Di Giacinto
8bce3f1f00
Merge pull request #181 from mudler/trim_domain_name_from_cached_image_reference
...
Trim the Domain Name from cached image references
2021-01-29 16:25:50 +01:00
David Cassany
18e9ce4557
Trim the Domain Name from cached image references
...
This commit removes the Domain Name, if any, from the cached image
reference before computing the image fingerprint. This way the same
image, if stored in some oter mirror, is still seen as the same one.
Fixes #158
2021-01-29 15:11:52 +01:00
Daniele Rondina
9f73a334b3
cmd/tree/validate: Avoid nil pointer if solution doesn't contain the dependency
2021-01-25 19:13:33 +01:00
Ettore Di Giacinto
4eab1eb738
Tag bugfix release 0.10.2
2021-01-25 14:36:01 +01:00
Ettore Di Giacinto
685bbf46a6
Refactor common code while compiling regexes
2021-01-25 12:20:04 +01:00
Ettore Di Giacinto
d89225f37d
Handle namedpipe copy
...
CopyFile relies on copy.Copy from https://github.com/otiai10/copy which
doesn't handle named pipes copy. Handle it here until
https://github.com/otiai10/copy/issues/47 is fixed.
This causes luet to hang while copying packages that have named pipes in
it.
Also invert compression argument for gzip, it causes slowliness.
2021-01-25 12:20:04 +01:00
Ettore Di Giacinto
55d34a3b40
Adapt artifact tests after delta changes
2021-01-24 20:07:33 +01:00
Ettore Di Giacinto
85b5c96bdd
Promote to info building image messages
...
The user wants to know whats going on in this case. Image builds can
take up also long time
2021-01-24 19:09:09 +01:00
Ettore Di Giacinto
6f5f400765
Don't bail out if image doesn't exist locally
...
The backend will figure out if we have the image or not, otherwise will
atempt to pull if not there.
Skip retrieve integration test with img as its not supported.
2021-01-24 19:05:21 +01:00
Ettore Di Giacinto
be87861657
img: pull image if not locally present while extracting
2021-01-24 13:17:11 +01:00
Ettore Di Giacinto
76e5d37895
ci: temporary disable final image tests with img
2021-01-24 13:06:23 +01:00
Ettore Di Giacinto
8aca246f51
ci: login to quay for integration tests
2021-01-24 12:57:15 +01:00
Ettore Di Giacinto
be7b56bae3
Split ImageDefinitionToTar test
...
ImageDefinitionToTar it is not actually used by compiler code, but can
be handy from an API perspective, so we keep it.
2021-01-24 12:56:25 +01:00
Ettore Di Giacinto
eae2382764
unpackDelta needs a rootfs where to extract files from
2021-01-24 12:41:56 +01:00
Ettore Di Giacinto
76076c8f51
Run integration tests on img as well
2021-01-24 12:34:44 +01:00
Ettore Di Giacinto
7d11df3225
Simplify delta generation, and avoid two-pass with img backend
...
This changeset also drops --keep-exported-images, which is quite unused
and can be replaced with a plugin, or either by manually exporting the
resulting images.
2021-01-24 12:27:07 +01:00
Ettore Di Giacinto
0ae8cbb877
Tag 0.10.1
2021-01-23 22:02:18 +01:00
Ettore Di Giacinto
b9f0ef1c55
Implement ImageExists in the img backend
2021-01-23 22:01:29 +01:00
Ettore Di Giacinto
8b4b249211
Tag 0.10.0
2021-01-22 21:21:59 +01:00
Niklas Engvall
23bc42bb15
Latest version, sudo check, autoinstall repos
...
Grab latest version, if not get a default since luet auto updates.
Check is ran as normal user or sudo/root.
Autoinstall repos -y.
2021-01-22 21:19:02 +01:00
Ettore Di Giacinto
715ee1db08
Add unit test for creating docker repositories
2021-01-22 19:59:26 +01:00