-
Couldn't load subscription status.
- Fork 881
functional tests: Add new test with systemd-proxyd #2257
Conversation
|
|
||
| `rkt` also supports [socket-proxyd service][systemd-socket-proxyd]. So, like in | ||
| socket activation systemd will listen on a port on behalf of a container, and start the container when receiving a connection. It could be useful to provide socket activation for enviroment that natively doesn't support it. One of the | ||
| example is the `KVM` flavour in `stage1`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flavor
bd5b40c to
a97d768
Compare
a97d768 to
a48874b
Compare
|
review request... |
|
LFTM |
|
|
||
| `rkt` also supports [socket-proxyd service][systemd-socket-proxyd]. So, like in | ||
| socket activation systemd will listen on a port on behalf of a container, and start the container when receiving a connection. It could be useful to provide socket activation for enviroment that natively doesn't support it. One of the | ||
| example is the `KVM` flavor in `stage1`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/enviroment/environment/
a48874b to
d9448f3
Compare
tests/rkt_socket_proxyd_test.go
Outdated
| } | ||
| defer os.Remove(socketTarget) | ||
|
|
||
| // path to systemd-socket-proxyd on Ubuntu (different path on Fedora). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be available as well on Fedora.
$ rpm -qf /lib/systemd/systemd-socket-proxyd
systemd-222-14.fc23.x86_64
|
I didn't know systemd-socket-proxyd. It looks cool :) @joshix , can you review the changes in Documentation/using-rkt-with-systemd.md? Thanks:) |
3e2ea82 to
2fae589
Compare
|
@joshix review request. |
|
|
||
| ### Bidirectionally proxy local sockets to another (possibly remote) socket. | ||
|
|
||
| `rkt` also supports [socket-proxyd service][systemd-socket-proxyd]. So, like in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rkt also supports the [socket-proxyd service][systemd-socket-proxyd]. Much like socker activation, with socket-proxyd systemd provides a listener on a given port on behalf of a container, and starts the container when a connection is received. Socket-proxy listening can be useful in environments that lack native support for socket activation. The LKVM stage1 flavor is an example of such an environment.
2fae589 to
46f6cbe
Compare
|
@joshix review request. |
|
|
||
| ### Bidirectionally proxy local sockets to another (possibly remote) socket. | ||
|
|
||
| `rkt` also supports the [socket-proxyd service][systemd-socket-proxyd]. Much like socker activation, with socket-proxyd systemd provides a listener on a given port on behalf of a container, and starts the container when a connection is received. Socket-proxy listening can be useful in environments that lack native support for socket activation. The LKVM` `stage1 flavor is an example of such an environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/socker/socket/
remove the backticks after "LKVM" and before "stage1"
|
@woodbor I have the two little nits noted inline. After those are fixed, the docs part LGTM. Thanks! |
46f6cbe to
f009ada
Compare
|
done |
tests/rkt_socket_proxyd_test.go
Outdated
| @@ -0,0 +1,201 @@ | |||
| // Copyright 2015 The rkt Authors | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016
|
I also have two little nits noted inline. After that, LGTM. |
Setting ptp template network and IP address in systemd unit during test. Updated also docs with example.
f009ada to
3d610d8
Compare
|
done |
|
Thanks. |
Setting
ptptemplate network and IP address in systemd unit duringtest. Updated also docs with example.