Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .NET version of tcp/noise/yamux #298

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions transport-interop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ RUST_SUBDIRS := $(wildcard impl/rust/*/.)
NIM_SUBDIRS := $(wildcard impl/nim/*/.)
ZIG_SUBDIRS := $(wildcard impl/zig/*/.)
JAVA_SUBDIRS := $(wildcard impl/java/*/.)
DOTNET_SUBDIRS := $(wildcard impl/dotnet/*/.)

all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JAVA_SUBDIRS)
all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JAVA_SUBDIRS) $(DOTNET_SUBDIRS)
$(JS_SUBDIRS):
$(MAKE) -C $@
$(GO_SUBDIRS):
Expand All @@ -18,5 +19,7 @@ $(ZIG_SUBDIRS):
$(MAKE) -C $@
$(JAVA_SUBDIRS):
$(MAKE) -C $@
$(DOTNET_SUBDIRS):
$(MAKE) -C $@

.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JAVA_SUBDIRS) all
.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JAVA_SUBDIRS) $(DOTNET_SUBDIRS) all
4 changes: 4 additions & 0 deletions transport-interop/impl/dotnet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dotnet-libp2p-*.zip
dotnet-libp2p-*
dotnet-libp2p-*/*
image.json
21 changes: 21 additions & 0 deletions transport-interop/impl/dotnet/v1.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
image_name := dotnet-v1.0
commitSha := bd66c9a9e25911dd3482c2aa466f5b409e498bb4

all: image.json

image.json: dotnet-libp2p-${commitSha}
cd dotnet-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f src/samples/transport-interop/Dockerfile" .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@

dotnet-libp2p-${commitSha}: dotnet-libp2p-${commitSha}.zip
unzip -o dotnet-libp2p-${commitSha}.zip

dotnet-libp2p-${commitSha}.zip:
# wget -O $@ "https://github.com/NethermindEth/dotnet-libp2p/archive/${commitSha}.zip"
wget -O $@ "http://139.177.181.61:8000/${commitSha}.zip"

clean:
rm image.json
rm dotnet-libp2p-*.zip
rm -rf dotnet-libp2p-*
6 changes: 6 additions & 0 deletions transport-interop/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,10 @@ export const versions: Array<Version> = [
secureChannels: ["tls", "noise"],
muxers: ["mplex", "yamux"],
},
{
id: "dotnet-v1.0",
transports: ["tcp"],
secureChannels: ["noise"],
muxers: ["yamux"],
},
].map((v: Version) => (typeof v.containerImageID === "undefined" ? ({ ...v, containerImageID: canonicalImageIDLookup }) : v))
Loading