Comments (7)
from containerregistry.
I'm not sure a lower level would help appreciably. Python gzip is just tremendously slow.
We could consider making this take a kwarg to control whether compressed or uncompressed blobs are emitted (or both). WDYT?
from containerregistry.
uncompressed vs compressed would be best, but on my cursory glance at the code, it looks like a non-trivial change to skip compression altogether.
from containerregistry.
Yeah, this is a little trickier than I thought, mostly because of how oriented the DockerImage
interface is around having the layer digests, which we basically don't have or need.
The good news is that FromTarball
already lazily generates the manifest, so if we are careful we should be able to extend the interface to achieve what you want. My current thinking looks something like:
- Extend
DockerImage
to expose adiff_ids()
member that returns the list ofdiff_ids
from theconfig_file()
(which we can access without producing themanifest()
inFromTarball
. - Extend the
DockerImage
interface to allow fetchinguncompressed_blob
bydiff_id
. - When
v2_2_save.fast
is called to emit uncompressed stuff, then bypass this loop completely and have another that uses the above.
WDYT?
from containerregistry.
Looks like it should work.
from containerregistry.
What do you think about #28?
Not quite what we discussed but looks simpler and does only what's needed.
from containerregistry.
I believe this should be resolved by outlining the gzip entirely
from containerregistry.
Related Issues (20)
- foreign layers not pulled properly HOT 2
- Example for pulling an image from a remote registry into the docker daemon HOT 3
- error wnhen using docker 2.0.0.3
- error wnhen using docker 2.0.0.3
- error wnhen using docker 2.0.0.3
- error wnhen using docker 2.0.0.3 HOT 2
- error wnhen using docker 2.0.0.3
- auth error when using default config.json from docker 2.0.0.3 HOT 4
- fast_puller_.py pulls the wrong image from GCR HOT 2
- forced url server specification fails to match for docker-credentials-secretservice
- fast_puller_.py pulls an image with an unknown SHA256 from quay.io HOT 1
- Pushes to gitlab fail with SSL error HOT 6
- Pushes to gitlab fail with SSL error HOT 1
- save.py: digest file writing thread bugs
- Doens't work with Bazel 0.25.0 because it uses Python 3 by default HOT 7
- containerregistry in Pypi
- image_digester.py fails to run on Python3-default systems HOT 1
- Is there a unittest suite for this code? HOT 1
- Support images larger than 2GiB in docker_session.upload() HOT 3
- Docker Puller tool does not work with Dockerhub images HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from containerregistry.