fix: make `rust-chromium` a separate implementation (#302)

This commit is contained in:
Thomas Eizinger 2023-09-15 06:57:15 +10:00 committed by GitHub
parent a96d930eb4
commit d9a5c388ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 8 deletions

View File

@ -0,0 +1,5 @@
rust-libp2p-*.zip
rust-libp2p-*
rust-libp2p-*/*
image.json
chromium-image.json

View File

@ -0,0 +1,20 @@
image_name := rust-v0.52
commitSha := 54fa53af393adac83f9aab273c3d30efbc31ba57
all: image.json
image.json: rust-libp2p-${commitSha}
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.chromium .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
rust-libp2p-${commitSha}: rust-libp2p-${commitSha}.zip
unzip -o rust-libp2p-${commitSha}.zip
rust-libp2p-${commitSha}.zip:
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/${commitSha}.zip"
clean:
rm image.json
rm rust-libp2p-*.zip
rm -rf rust-libp2p-*

View File

@ -1,12 +1,7 @@
image_name := rust-v0.52
commitSha := 54fa53af393adac83f9aab273c3d30efbc31ba57
all: image.json chromium-image.json
chromium-image.json: rust-libp2p-${commitSha}
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.chromium .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
all: image.json
image.json: rust-libp2p-${commitSha}
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.native .

View File

@ -63,8 +63,7 @@ export const versions: Array<Version> = [
muxers: ["mplex", "yamux"],
},
{
id: "chromium-rust-v0.52",
containerImageID: browserImageIDLookup,
id: "rust-chromium-v0.52",
transports: [{ name: "webtransport", onlyDial: true }],
secureChannels: [],
muxers: [],