Skip to content

Add StreamProcessors for handling media types of content streams#3482

Merged
estesp merged 8 commits intocontainerd:masterfrom
crosbymichael:apply-remote
Aug 7, 2019
Merged

Add StreamProcessors for handling media types of content streams#3482
estesp merged 8 commits intocontainerd:masterfrom
crosbymichael:apply-remote

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

StreamProcessors are used with the content operations that will allow people to create binaries that accept a content stream with a media type and output a content stream for another media type. This can be used with the encryption code to keep encryption primitives out of the daemon and extend the daemon for custom media types without having to do a full release.

Example config where content types are pipelined.

[[stream_processors]]
        id = "cat"
        accepts = ["application/vnd.docker.image.rootfs.diff.tar.gzip"]
        returns = "test"
        path = "cat"

[[stream_processors]]
        id = "pigz"
        accepts = ["test"]
        returns = "application/vnd.oci.image.layer.v1.tar"
        path = "unpigz"
        args = ["-d", "-c"]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 2, 2019

Build succeeded.

@crosbymichael crosbymichael force-pushed the apply-remote branch 2 times, most recently from 5576674 to 3c15b31 Compare August 2, 2019 20:01
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 2, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 2, 2019

Codecov Report

Merging #3482 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3482      +/-   ##
==========================================
- Coverage   44.27%   44.26%   -0.01%     
==========================================
  Files         124      124              
  Lines       13672    13675       +3     
==========================================
  Hits         6053     6053              
- Misses       6684     6687       +3     
  Partials      935      935
Flag Coverage Δ
#linux 48.04% <0%> (-0.01%) ⬇️
#windows 39.74% <0%> (-0.02%) ⬇️
Impacted Files Coverage Δ
services/server/server.go 1.22% <0%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2ff1ef4...552a0b1. Read the comment docs.

Copy link
Copy Markdown
Member

@stevvooe stevvooe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on design

Comment thread diff/stream.go Outdated
Comment thread diff/stream.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd.Env = os.Environ()?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also needs Pdeathsig?

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 5, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 5, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 5, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 5, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 6, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 6, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 6, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 6, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 6, 2019

Build succeeded.

@stefanberger
Copy link
Copy Markdown
Contributor

works for me

@crosbymichael
Copy link
Copy Markdown
Member Author

ping @dmcgowan

@AkihiroSuda
Copy link
Copy Markdown
Member

LGTM but cmd.Env = append(os.Environ(), ...) seems needed

@crosbymichael
Copy link
Copy Markdown
Member Author

@AkihiroSuda updated

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 7, 2019

Build succeeded.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants