diff --git a/transport-interop/Makefile b/transport-interop/Makefile index ed98ff716..77cdd4017 100644 --- a/transport-interop/Makefile +++ b/transport-interop/Makefile @@ -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): @@ -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 diff --git a/transport-interop/impl/dotnet/.gitignore b/transport-interop/impl/dotnet/.gitignore new file mode 100644 index 000000000..15f69ab3b --- /dev/null +++ b/transport-interop/impl/dotnet/.gitignore @@ -0,0 +1,4 @@ +dotnet-libp2p-*.zip +dotnet-libp2p-* +dotnet-libp2p-*/* +image.json diff --git a/transport-interop/impl/dotnet/v1.0/Makefile b/transport-interop/impl/dotnet/v1.0/Makefile new file mode 100644 index 000000000..0b871048b --- /dev/null +++ b/transport-interop/impl/dotnet/v1.0/Makefile @@ -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-* diff --git a/transport-interop/versions.ts b/transport-interop/versions.ts index 3c134f08c..d2752b5ab 100644 --- a/transport-interop/versions.ts +++ b/transport-interop/versions.ts @@ -152,4 +152,10 @@ export const versions: Array = [ 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))