mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-02-17 17:27:39 +00:00
26 lines
931 B
Makefile
26 lines
931 B
Makefile
image_name := rust-v0.52
|
|
commitSha := 68e6bf9c3cd0d3317415a5ba31a62e91cba0a5d2
|
|
|
|
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\": \"{}\"}" > $@
|
|
|
|
image.json: rust-libp2p-${commitSha}
|
|
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.native .
|
|
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-*
|