Skip to content

Commit

Permalink
feat(interop): add java-v0.6 (libp2p#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevodwyer authored Nov 8, 2023
1 parent eb21984 commit 189496f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions transport-interop/impl/java/v0.6/Makefile
Original file line number Diff line number Diff line change
@@ -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-*
6 changes: 6 additions & 0 deletions transport-interop/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,10 @@ export const versions: Array<Version> = [
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))

0 comments on commit 189496f

Please sign in to comment.