diff --git a/multidim-interop/Makefile b/multidim-interop/Makefile index a9cf18d..ed98ff7 100644 --- a/multidim-interop/Makefile +++ b/multidim-interop/Makefile @@ -3,8 +3,9 @@ JS_SUBDIRS := $(wildcard impl/js/*/.) RUST_SUBDIRS := $(wildcard impl/rust/*/.) NIM_SUBDIRS := $(wildcard impl/nim/*/.) ZIG_SUBDIRS := $(wildcard impl/zig/*/.) +JAVA_SUBDIRS := $(wildcard impl/java/*/.) -all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) +all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JAVA_SUBDIRS) $(JS_SUBDIRS): $(MAKE) -C $@ $(GO_SUBDIRS): @@ -15,6 +16,7 @@ $(NIM_SUBDIRS): $(MAKE) -C $@ $(ZIG_SUBDIRS): $(MAKE) -C $@ +$(JAVA_SUBDIRS): + $(MAKE) -C $@ - -.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) all +.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) $(JAVA_SUBDIRS) all diff --git a/multidim-interop/impl/java/.gitignore b/multidim-interop/impl/java/.gitignore new file mode 100644 index 0000000..78c6002 --- /dev/null +++ b/multidim-interop/impl/java/.gitignore @@ -0,0 +1,3 @@ +java-libp2p-* +nabu-* +image.json \ No newline at end of file diff --git a/multidim-interop/impl/java/v0.0.1/Makefile b/multidim-interop/impl/java/v0.0.1/Makefile new file mode 100644 index 0000000..1d56aec --- /dev/null +++ b/multidim-interop/impl/java/v0.0.1/Makefile @@ -0,0 +1,14 @@ +image_name := java-v0.0.1 +commitSha := 89f724c4ca07eb4fc704176f91ad1f390b388cdb + +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/multidim-interop/versions.ts b/multidim-interop/versions.ts index b92eb59..46cdcc2 100644 --- a/multidim-interop/versions.ts +++ b/multidim-interop/versions.ts @@ -20,6 +20,7 @@ import chromiumJsV044 from "./impl/js/v0.44/chromium-image.json" import chromiumJsV045 from "./impl/js/v0.45/chromium-image.json" import firefoxJsV045 from "./impl/js/v0.45/firefox-image.json" import zigv001 from "./impl/zig/v0.0.1/image.json" +import javav001 from "./impl/java/v0.0.1/image.json" export type Version = { id: string, @@ -186,4 +187,11 @@ export const versions: Array = [ secureChannels: [], muxers: [], }, + { + id: "java-v0.0.1", + containerImageID: javav001.imageID, + transports: ["tcp"], + secureChannels: ["tls", "noise"], + muxers: ["mplex", "yamux"], + }, ]