From 189496f182ac16fee3280ea2bad0fe6a1b4e3443 Mon Sep 17 00:00:00 2001 From: kevodwyer Date: Wed, 8 Nov 2023 14:33:43 +0000 Subject: [PATCH] feat(interop): add java-v0.6 (#323) --- transport-interop/impl/java/v0.6/Makefile | 14 ++++++++++++++ transport-interop/versions.ts | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 transport-interop/impl/java/v0.6/Makefile diff --git a/transport-interop/impl/java/v0.6/Makefile b/transport-interop/impl/java/v0.6/Makefile new file mode 100644 index 000000000..bdf1d1182 --- /dev/null +++ b/transport-interop/impl/java/v0.6/Makefile @@ -0,0 +1,14 @@ +image_name := java-v0.6 +commitSha := f917cc40060fcffc0b7ee9c66a04b35fb1b0a9bd + +all: image.json + +image.json: + wget -O java-libp2p-${commitSha}.zip "https://github.com/Peergos/nabu/archive/${commitSha}.zip" + unzip -o java-libp2p-${commitSha}.zip + cd nabu-${commitSha} && docker build -t ${image_name} -f Dockerfile . + docker image inspect ${image_name} -f "{{.Id}}" | \ + xargs -I {} echo "{\"imageID\": \"{}\"}" > $@ + +clean: + rm -rf image.json java-libp2p-*.zip nabu-* diff --git a/transport-interop/versions.ts b/transport-interop/versions.ts index ec20c133d..215e13ec1 100644 --- a/transport-interop/versions.ts +++ b/transport-interop/versions.ts @@ -130,4 +130,10 @@ export const versions: Array = [ secureChannels: ["tls", "noise"], muxers: ["mplex", "yamux"], }, + { + id: "java-v0.6", + transports: ["tcp"], + secureChannels: ["tls", "noise"], + muxers: ["mplex", "yamux"], + }, ].map((v: Version) => (typeof v.containerImageID === "undefined" ? ({ ...v, containerImageID: canonicalImageIDLookup }) : v))