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
Ettore Di Giacinto
d5f70aea26
Add test for Artifact GetUncompressedName()
2021-01-22 19:15:54 +01:00
Ettore Di Giacinto
3bbc2c4691
Add multiarch-build-small target to shrink release builds
2021-01-22 19:07:17 +01:00
Ettore Di Giacinto
c7e5c9b1fd
Enhance create-repo CLI args help
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
7c507fe272
Set GHA workflow to access to testing docker image
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
a037bc545b
Add comment on required permission to unpack
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
d2e6409451
Add docker client unit test
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
a2df02e1bf
Add comments on repository files #159
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
f0b8e4556e
Make warning messages less prominent
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
161b5f40f7
Add file/line/function to debug messages
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
485b8d8c89
Add integration test for docker repository types
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
cad1deb2c6
Allow to run single integration tests
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
928c305ff1
Respect metadata fields about the tree filename
...
This caused to always ignore what was explictly asked during repo
creation
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
a192d48610
Reword CLI help for --force-push
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
a6e7a3059c
Respect artifact extension when populating cache
...
This caused cache to not hit correctly
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
9a2ff0a3e2
Don't cleanup images from system during integration tests
...
Should fix #167
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
9b2b877a53
Avoid to build images if already present
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
75fad993f3
Fixup repository revision bump
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
4b4c3a2e14
Adapt tests to new constructor changes
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
c24a3a35f1
Update gomod and vendor
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
163f93067c
Temporarly rework genuinetools/img code for pull/unpack without Docker
2021-01-22 16:55:51 +01:00
Ettore Di Giacinto
91ea2ed99f
Make docker image repositories actually working
...
Several changes are included:
- Expose ensureDir in helpers, and call it in the Docker client. In
other implementations that was handled by CopyFile behind the scenes,
but that's not the case here
- Create accessor in Artifact to create Artifact objects from files.
This is handy when we have to carry over downloaded package content
into caches when artifacts are already verified
- Fix various issues around the imagePush flag, so now trees are pushed
forcefully each time
- Take into consideration the real artifact name when pushing single
files in the docker image. This behavior should be changed eventually,
because single files which aren't repository packages now are in its
own docker image, but we should have just one that brings the required
metadata alltogether.
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
b27b146b45
Refactor artifact Verify()
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
7b25a54653
Update gomod and vendor
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
dbd37afced
Add docker client #169
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
2f459c0469
Use only one docker image reference to push repository.
...
Instead of generating different images, which are harder to track and
clean, we generate a single image with various tags, corresponding to
the packages available in the repositories.
Tagging, and pushing separate images will be possible with the plugin
mechanism
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
ad455edafc
Allow to push images in create-repo
...
Add also the --force flag to allow image overwrite
Related to #169
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
d9286a1a1e
Download repository metadata with client DownloadFile, uniform downloads for Docker repositories
2021-01-22 16:54:19 +01:00
Ettore Di Giacinto
322fe72ef2
Generate repository metadata and packages for docker repository type
...
Drop image-repository on create-repo. In case of a docker repository, --output is the image reference to use.
Also restore default output build dir.
See also: #169
2021-01-22 16:53:52 +01:00
Ettore Di Giacinto
88b5576611
Expect full image name to GenerateFinalImage
...
We will re-use this method also when generating repository metadata
2021-01-18 12:26:22 +01:00
Ettore Di Giacinto
a1f4c28973
Add GenerateFinalImage to package artifacts
...
GenerateFinalImage generates a docker image from scratch with the
artifact content.
Related to #169
2021-01-18 12:08:47 +01:00
Ettore Di Giacinto
43b0b11028
Define a build context for backends
2021-01-18 11:06:54 +01:00
Ettore Di Giacinto
429e9757db
Select cwd as default tree path for commands
2021-01-18 10:40:41 +01:00
Ettore Di Giacinto
3d086c9b17
Merge pull request #172 from trappiz/patch-2
...
Update version, utilize curl fully instead of mixing.
2021-01-16 20:26:08 +01:00
Niklas Engvall
bb610dff49
Update version, utilize curl fully instead of mixing.
2021-01-16 19:55:46 +01:00