-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #477 from desci-labs/m0ar/debug-by-publish-date
Debug route only investigates published nodes
- Loading branch information
Showing
5 changed files
with
72 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
# import required images from ipfs to local | ||
|
||
check_and_install() { | ||
echo "check and install: $1" | ||
# local shell_cmd = $1 | ||
if ! command -v $1 &> /dev/null; | ||
then | ||
apt-get install -y $1 | ||
fi | ||
} | ||
set -eux | ||
|
||
check_and_install "wget" | ||
check_and_install "curl" | ||
|
||
wget https://ipfs.desci.com/ipfs/bafkreih6yx7ywj7trvpp45vergrnytad7ezsku75tefyro4qrrcfrrmrt4 -O /tmp/cover.png | ||
curl -F file=@/tmp/cover.png "http://host.docker.internal:5001/api/v0/add?cid-version=1" | ||
# curl and wget are installed in the docker image | ||
curl https://ipfs.desci.com/ipfs/bafkreih6yx7ywj7trvpp45vergrnytad7ezsku75tefyro4qrrcfrrmrt4 -o /tmp/cover.png | ||
curl -F file=@/tmp/cover.png "http://host.docker.internal:5001/api/v0/add?cid-version=1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters