Add go-libp2p v0.26 (#151)

This commit is contained in:
Marco Munizaga 2023-03-09 16:58:16 -08:00 committed by GitHub
parent 019118710a
commit 54d19f56a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
image_name := go-v0.26
commitSha := 59a14cf3194d5d057c45cb1dbc7b1af3a116bc7a
all: image.json
image.json: go-libp2p-${commitSha}
cd go-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../dockerBuildWrapper.sh -f test-plans/PingDockerfile .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
go-libp2p-${commitSha}: go-libp2p-${commitSha}.zip
unzip -o go-libp2p-${commitSha}.zip
go-libp2p-${commitSha}.zip:
wget -O $@ "https://github.com/libp2p/go-libp2p/archive/${commitSha}.zip"
clean:
rm image.json
rm go-libp2p-*.zip
rm -rf go-libp2p-*