[Pulp-dev] possible to upload container image blobs?

Tom McKay thomasmckay at redhat.com
Thu Mar 8 03:35:19 UTC 2018


resending since mobile email triggered approval...

i have created an api endpoint in foreman for docker push and from there
will be calling pulp. don’t worry about “safe” since there is no manual
aspect. if pulp doesn’t support it, i will work around. if it us possible,
please tell me how. thanks!!

In my proof-of-concept foreman work, I have docker login working with RBAC
for limiting scope of images for docker pull. I also added the /v2/_catalog
and /v2/$repo/tags/list since those are very useful for integrating with
tools like openshift. If I can get docker push / skopeo working, that would
be a huge win.

I understand that these topics are not a priority but any suggestions on
how to make this work with existing pulp-2 code would be very welcome.


On Wed, Mar 7, 2018 at 9:31 PM, Mihai Ibanescu <mihai.ibanescu at gmail.com>
wrote:

> See https://pulp.plan.io/issues/3231 as well.
>
> On Wed, Mar 7, 2018 at 5:25 PM, Ina Panova <ipanova at redhat.com> wrote:
>
>> Hello Tom,
>>
>> No it is not possible to upload individual blobs, the only way how to get
>> image manifest schema1 or schema2 for now is to use skopeo copy and tar the
>> output.
>> For more info please checks the docs and recipes [0].
>>
>> In addition it is not safe to upload the components of the tar file
>> individually, because if you upload just a single json file without blobs,
>> it ends up to be a corrupted image manifest. In case you'd upload blob by
>> blob, you also risk to end up with corrupted image manifest in case you'd
>> forget some blob to upload.
>>
>> Let me know in case you have more questions.
>>
>> [0] https://github.com/pulp/pulp_docker/blob/master/docs/user-gu
>> ide/recipes.rst#upload-v2-schema-2-and-schema-1-images-to-pulp
>>
>>
>>
>> --------
>> Regards,
>>
>> Ina Panova
>> Software Engineer| Pulp| Red Hat Inc.
>>
>> "Do not go where the path may lead,
>>  go instead where there is no path and leave a trail."
>>
>> On Wed, Mar 7, 2018 at 10:06 PM, Tom McKay <thomasmckay at redhat.com>
>> wrote:
>>
>>> I know I can upload a skopeo copy tar file but is it possible to upload
>>> individual blobs directly? Or upload the components of the tar file
>>> individually? I am on pulp-2.15.2.
>>>
>>> _______________________________________________
>>> Pulp-dev mailing list
>>> Pulp-dev at redhat.com
>>> https://www.redhat.com/mailman/listinfo/pulp-dev
>>>
>>>
>>
>> _______________________________________________
>> Pulp-dev mailing list
>> Pulp-dev at redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20180307/d4837ed6/attachment.htm>


More information about the Pulp-dev mailing list