Support SCTP port mapping (bump up API to v1.37)#33922
Conversation
diff --git a/hack/dockerfile/binaries-commits b/hack/dockerfile/binaries-commits
index 98344bc2f..ae6324541 100644
--- a/hack/dockerfile/binaries-commits
+++ b/hack/dockerfile/binaries-commits
@@ -6,9 +6,12 @@ TOMLV_COMMIT=9baf8a8a9f2ed20a8e54160840c492f937eeaf9a
RUNC_COMMIT=2d41c047c83e09a6d61d464906feb2a2f3c52aa4
CONTAINERD_COMMIT=3addd840653146c90a254301d6c3a663c7fd6429
TINI_COMMIT=949e6facb77383876aeff8a6944dde66b3089574
-LIBNETWORK_COMMIT=7b2b1feb1de4817d522cc372af149ff48d25028e
+# TODO: remove LIBNETWORK_REPO when libnetwork#1825 gets merged to upstream
+LIBNETWORK_REPO=https://github.com/ishidawataru/libnetwork.git
+LIBNETWORK_COMMIT=c04444a9ef8bd272e9c7c971e6235f3a79e7b11c
VNDR_COMMIT=c56e082291115e369f77601f9c071dd0b87c7120
# CLI
-DOCKERCLI_REPO=https://github.com/docker/cli
-DOCKERCLI_COMMIT=3dfb8343b139d6342acfd9975d7f1068b5b1c3d3
+DOCKERCLI_REPO=https://github.com/ishidawataru/cli.git
+DOCKERCLI_COMMIT=49ee8ec5882240454c12e098ecc0b86fd12922c9
+
diff --git a/hack/dockerfile/install-binaries.sh b/hack/dockerfile/install-binaries.sh
index 370ec7ce4..9747478c7 100755
--- a/hack/dockerfile/install-binaries.sh
+++ b/hack/dockerfile/install-binaries.sh
@@ -40,7 +40,7 @@ install_containerd() {
install_proxy() {
echo "Install docker-proxy version $LIBNETWORK_COMMIT"
- git clone https://github.com/docker/libnetwork.git "$GOPATH/src/github.com/docker/libnetwork"
+ git clone "$LIBNETWORK_REPO" "$GOPATH/src/github.com/docker/libnetwork"
cd "$GOPATH/src/github.com/docker/libnetwork"
git checkout -q "$LIBNETWORK_COMMIT"
go build -ldflags="$PROXY_LDFLAGS" -o /usr/local/bin/docker-proxy github.com/docker/libnetwork/cmd/proxyPlease update hack/dockerfile temporarily for ease of testing and reviewing |
|
@AkihiroSuda done |
hack/dockerfile/binaries-commits
Outdated
| DOCKERCLI_REPO=https://github.com/docker/cli | ||
| DOCKERCLI_COMMIT=3dfb8343b139d6342acfd9975d7f1068b5b1c3d3 | ||
| DOCKERCLI_REPO=https://github.com/ishidawataru/cli.git | ||
| DOCKERCLI_COMMIT=49ee8ec5882240454c12e098ecc0b86fd12922c9 |
There was a problem hiding this comment.
the commit seems gone. 72233db2ec641b322c2f49f81645ff5bf6f745b6?
|
@AkihiroSuda Thanks a lot for your support! Cherry-picked your commits on my branches. |
|
CI failure is weird but seems real |
|
Test failure seems because this PR vendors CLI that seems recently got broken (docker/cli#293) @ishidawataru Please revert change to |
|
@AkihiroSuda No problem. I reverted the commits. |
|
Any chance of this getting included? |
|
@orbsfoc moby/libnetwork#1825 needs to be merged first. Review is welcome. |
|
@AkihiroSuda @ishidawataru what is the status of this feature ? |
|
moby/libnetwork#1825 needs to be reviewed and merged. I guess not all libnetwork maintainers are familiar with SCTP, so inputs from SCTP community would be helpful to move this forward. |
thaJeztah
left a comment
There was a problem hiding this comment.
Changes LGTM
@AkihiroSuda I opened #36335 to keep unrelated bumps out of this PR; we can rebase this PR after that's merged
@fcrisciani @nwoodmsft this vendor bump also brings in moby/libnetwork#2070 - are local changes needed to use that? Does that change need updates in the documentation or CLI?
hack/dockerfile/binaries-commits
Outdated
There was a problem hiding this comment.
doh! looks like this commit was out of sync with vendor.conf; I'll open a PR to add a comment here, and in vendor.conf to keep these in sync.
Perhaps we should have some code to parse vendor.conf and automatically sync them (I think I saw some code in another repository doing this)
Let me open a separate PR to straighten this separate
There was a problem hiding this comment.
No local changes needed. From my perspective we are good to bring it in.
|
#36335 was merged; can you rebase, @AkihiroSuda / @ishidawataru? |
|
rebased |
|
z failure doesn't look related; https://jenkins.dockerproject.org/job/Docker-PRs-s390x/8542/console restarting |
|
oh, does this require an API version bump? (At least a mention in the API history: https://github.com/moby/moby/blob/master/docs/api/version-history.md) |
Codecov Report
@@ Coverage Diff @@
## master #33922 +/- ##
=========================================
Coverage ? 34.3%
=========================================
Files ? 609
Lines ? 45299
Branches ? 0
=========================================
Hits ? 15542
Misses ? 27750
Partials ? 2007 |
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp> Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
|
bumped up API to v1.37 |
(EDIT by @AkihiroSuda: add list for tracking vendor PRs)
Needs-vendoring:
Vendored changes:
Signed-off-by: Wataru Ishida ishida.wataru@lab.ntt.co.jp
- What I did
This PR adds support for SCTP(Stream Control Transmission Protocol) port mapping.
SCTP is widely used in cellular networks as a transport protocol. One of the popular application of SCTP is Diameter. This PR enables running these applications inside docker containers.
Most of the work is done in libnetwork repo and I also opened a PR for it.
I'll shortly open a PR for docker/go-connections repo too.
vendor.conf is temporally filled with my forked repos.
Related issue: #9689
- How I did it
- How to verify it
use https://github.com/ishidawataru/cli/tree/sctp for the cli to try this out.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)