Skip to content

docker commit --change support#8765

Closed
crosbymichael wants to merge 7 commits intomoby:masterfrom
crosbymichael:commit-change
Closed

docker commit --change support#8765
crosbymichael wants to merge 7 commits intomoby:masterfrom
crosbymichael:commit-change

Conversation

@crosbymichael
Copy link
Copy Markdown
Contributor

Replaces #8332 fixing an issue with returning a hard error when there is an invalid command for commit.

dqminh and others added 5 commits October 24, 2014 21:04
Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh)
Instead of building the actual image, `build_config` will serialize a subset of
dockerfile ast into *runconfig.Config

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh)
In addition to config env, `commit` now will also accepts a `changes` env which
is a string contains new-line separated Dockerfile instructions.
`commit` will evaluate `changes` into `runconfig.Config` and merge it with
`config` env, and then finally commit a new image with the changed config

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh)
Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh)
Comment thread builder/job.go
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we should probably do all of this below in the dispatcher. not here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Which part?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are we instantiating the parser and evaluator here in a way which is extremely similar but subtly different, and prone to bit rot later? There has to be a better solution than this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well let us know what you want done as you are most familiar with the builder code.

@rhatdan
Copy link
Copy Markdown
Contributor

rhatdan commented Oct 25, 2014

Before this gets merged we need to have the exact same functionality for docker import. Is someone going to work on this, or should I start playing with it?

@SvenDowideit
Copy link
Copy Markdown
Contributor

cli.md and the man page :)

@dqminh
Copy link
Copy Markdown
Contributor

dqminh commented Oct 29, 2014

cli.md and the man page :)

yes ;) i can send a docs PR to @crosbymichael branch later today. I guess that beside some code changes that need to be made, the cli's UI change should be good ( cc @shykes )

@rhatdan
Copy link
Copy Markdown
Contributor

rhatdan commented Oct 29, 2014

Glad to see this one moving forward.

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh)
@dqminh
Copy link
Copy Markdown
Contributor

dqminh commented Oct 30, 2014

@SvenDowideit i sent a pull request to @crosbymichael fork with the docs change crosbymichael#30. PTAL

add docs for commit --change
@SvenDowideit
Copy link
Copy Markdown
Contributor

@dqminh nice job - that tells me enough to work out what it does :)

Docs LGTM - @fredlf @jamtur01

@jamtur01
Copy link
Copy Markdown
Contributor

Docs LGTM

@crosbymichael
Copy link
Copy Markdown
Contributor Author

@rhatdan I think the import change would be easier to work on because it does not have this API issue that I'm trying to figureout now.

@fredlf
Copy link
Copy Markdown
Contributor

fredlf commented Nov 1, 2014

Docs LGTM. Okay for merge from docs' POV.

@crosbymichael
Copy link
Copy Markdown
Contributor Author

Closing in favor of #9123

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.

10 participants