mirror of
https://github.com/containers/skopeo.git
synced 2026-02-03 07:48:30 +00:00
Have 'from', 'commit', and 'build-using-dockerfile' report progress via stderr (so that capturing output from 'from' and 'commit' still works as expected) unless --quiet is used to suppress the reporting. Closes #94. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> Closes: #98 Approved by: rhatdan
23 lines
426 B
Go
23 lines
426 B
Go
package buildah
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/containers/image/copy"
|
|
"github.com/containers/image/types"
|
|
)
|
|
|
|
func getCopyOptions(reportWriter io.Writer) *copy.Options {
|
|
return ©.Options{
|
|
ReportWriter: reportWriter,
|
|
}
|
|
}
|
|
|
|
func getSystemContext(signaturePolicyPath string) *types.SystemContext {
|
|
sc := &types.SystemContext{}
|
|
if signaturePolicyPath != "" {
|
|
sc.SignaturePolicyPath = signaturePolicyPath
|
|
}
|
|
return sc
|
|
}
|