Skip to content

Conversation

@wonderflow
Copy link
Contributor

Relating with #12151

Also remove the function ExecConfigFromJob .

Signed-off-by: Sun Jianbo wonderflow@zju.edu.cn

@cpuguy83
Copy link
Member

@wonderflow Thanks for the work here.
One of the reasons we want to remove job is because of how horribly bad env is.

Can we move this from using env to use type safe functions/structs?

@wonderflow
Copy link
Contributor Author

@cpuguy83
We use env to decode the http messages and then transfer it to daemon.containerExecCreate.

So do you mean to rewrite a new way to decode http messages?

@wonderflow
Copy link
Contributor Author

@cpuguy83 I have known what you mean. Thanks. Let me change it.

@LK4D4
Copy link
Contributor

LK4D4 commented Apr 18, 2015

@wonderflow a lot of tests failing :)

@wonderflow
Copy link
Contributor Author

@LK4D4 thanks, I will fix it soon.

@wonderflow wonderflow force-pushed the 12151_remove_engine branch from 846300f to 8afeb2e Compare April 18, 2015 06:30
@wonderflow
Copy link
Contributor Author

@duglin squashed.

daemon/exec.go Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Let's switch these from Stdout and Stderr, to stdout and stderr

@cpuguy83
Copy link
Member

Also needs another rebase already, sorry.

@wonderflow
Copy link
Contributor Author

@cpuguy83 I've done it. Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

This might be a nit, but I'd prefer to not decode to ExecConfig here, instead add something in api/types for this, especially since we're really just getting Detach and Tty here.

@duglin @LK4D4

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, can be temp type here.

@wonderflow wonderflow force-pushed the 12151_remove_engine branch 2 times, most recently from f836ab3 to 903bc55 Compare April 21, 2015 02:11
@wonderflow
Copy link
Contributor Author

@cpuguy83 @LK4D4 Finished, please check. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

why you creating this at all if you later switch it to outStream? Also I'm pretty sure that using os.Stderr directly in daemon is not right thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is left by the old code, I'll remove it then. @LK4D4

@wonderflow wonderflow force-pushed the 12151_remove_engine branch 2 times, most recently from 7ee736b to 7688eaf Compare April 22, 2015 01:31
Also removed the function ExecConfigFromJob

Signed-off-by: Sun Jianbo <wonderflow@zju.edu.cn>
@wonderflow wonderflow force-pushed the 12151_remove_engine branch from 7688eaf to 9aaaa90 Compare April 22, 2015 01:35
Copy link
Contributor

Choose a reason for hiding this comment

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

I think name := vars["name] is more idiomatic

@calavera
Copy link
Contributor

Two minor code formatting issue, that are not blocking at all. Besides that, it looks good to me so far.

@wonderflow wonderflow deleted the 12151_remove_engine branch April 22, 2015 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants