1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-07 06:44:52 +01:00

9 Commits

Author SHA1 Message Date
Brent Baude
4aa4318c29 decompose: Add ability to decompose image w/digest
Adding the ability to decompose an input image "name" that
includes a digest. For example:

docker.io/library/fedora@sha256:64a02df6aac27d1200c2572fe4b9949f1970d05f74d367ce4af994ba5dc3669e

Also, reword the decompose method in a Decompose class.  This simplifies the use of
decomposition and allows for growth.

Example usage:
   registry, repo, image, tag, digest = Decompose("docker.io/library/busybox:latest").all
   repo = Decompose("docker.io/library/busybox:latest").repo
   digest = Decompose("docker.io/fedora@sha256:64a02df6aac27d1200c2...67ce4af994ba5dc3669e").digest

Closes: #701
Approved by: rhatdan
2016-10-13 12:23:37 +00:00
Aaron Weitekamp
f7144e19d2 constrain registry type choices for push
Closes: #699
Approved by: rhatdan
2016-10-12 16:20:12 +00:00
Brent Baude
e83c2c5dd8 Atomic.util: More robust decompose
Colleagues asked for decompose to be improved to where it took
an image name and broke it into registry, repo, image, and tag.
It also should mimic docker's implementation where 'library' is a known
exception

Also added unittests for decompose.  Removed a singular glob  test
as it is no longer valid

Closes: #677
Approved by: rhatdan
2016-10-05 17:00:11 +00:00
Brent Baude
18f499df51 Atomic/push.py: Don't prompt for password if token found
If the user has a token for the registry, we assume the token
is good and do not prompt for a username or password.

Closes: #675
Approved by: rhatdan
2016-10-04 14:54:53 +00:00
Dan Walsh
61b03d3c94 Pass down default policy_filename to skopeo copy command
We need this for integration tests

Closes: #663
Approved by: rhatdan
2016-09-27 17:53:33 +00:00
Aaron Weitekamp
c00a1972df add keyring override config
Closes: #643
Approved by: rhatdan
2016-09-26 14:31:13 +00:00
Brent Baude
7968f22781 Atomic/push.py: Rely on skopeo to write signatures
atomic push should always rely on skopeo to write
signatures even when the signatures are being
written locally.

This addresses https://github.com/projectatomic/atomic/issues/660

Closes: #662
Approved by: baude
2016-09-23 18:22:08 +00:00
Brent Baude
384643a93e Atomic/push.py: Implement push with signing
Enabling signing and pushing at the same time.  At the time of
this writing, we cannot verify that the atomic targets are
working but the code is there.  THis is enabled with the
--type atomic switch. Otherwise, signatures are written locally
and the image is pushed.

Closes: #631
Approved by: rhatdan
2016-09-20 08:56:36 +00:00
Dan Walsh
36a919e0d5 Split out atomic push functions into their own source file.
Create a Push class as a subclass of Atomic and move all of the
functions and CLI to this file.

Closes: #570
Approved by: baude
2016-09-01 19:02:07 +00:00