Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[19.03 backport] Introduce .zip import for docker context #1912

Merged
merged 1 commit into from
May 29, 2019

Commits on May 29, 2019

  1. Introduce .zip import for docker context

    Adds capabilities to import a .zip file with importZip.
    Detects the content type of source by checking bytes & DetectContentType.
    Adds LimitedReader reader, a fork of io.LimitedReader,
    was needed for better error messaging instead of just getting back EOF.
    We are using limited reader to avoid very big files causing memory issues.
    Adds a new file size limit for context imports,
    this limit is used for the main file for .zip & .tar and individual compressed
    files for .zip.
    Added TestImportZip that will check the import content type
    Then will assert no err on Importing .zip file
    
    Signed-off-by: Goksu Toprak <goksu.toprak@docker.com>
    (cherry picked from commit 291e862)
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    goksu authored and thaJeztah committed May 29, 2019
    Configuration menu
    Copy the full SHA
    90f256a View commit details
    Browse the repository at this point in the history