Created
August 21, 2019 20:13
-
-
Save adigunhammedolalekan/e7da1e0d85cf961f5806f05c50662bc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "github.com/docker/docker/pkg/archive" | |
// createBuildContext archive a dir and return an io.Reader | |
func createBuildContext(path string) (io.Reader, error) { | |
return archive.Tar(path, archive.Uncompressed) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment