Skip to content

Commit f5fd542

Browse files
committed
docker: Make curl invocations silent
1 parent ad9fbc9 commit f5fd542

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

docker/bin/create

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ fi
88
api="http://index-node.default/"
99

1010
data=$(printf '{"jsonrpc": "2.0", "method": "subgraph_create", "params": {"name":"%s"}, "id":"1"}' "$1")
11-
curl -H "content-type: application/json" --data "$data" "$api"
11+
curl -s -H "content-type: application/json" --data "$data" "$api"

docker/bin/deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ api="http://index-node.default/"
99

1010
echo "Deploying $1 (deployment $2)"
1111
data=$(printf '{"jsonrpc": "2.0", "method": "subgraph_deploy", "params": {"name":"%s", "ipfs_hash":"%s", "node_id":"%s"}, "id":"1"}' "$1" "$2" "$3")
12-
curl -H "content-type: application/json" --data "$data" "$api"
12+
curl -s -H "content-type: application/json" --data "$data" "$api"

docker/bin/reassign

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ api="http://index-node.default/"
99

1010
echo Assigning to "$3"
1111
data=$(printf '{"jsonrpc": "2.0", "method": "subgraph_reassign", "params": {"name":"%s", "ipfs_hash":"%s", "node_id":"%s"}, "id":"1"}' "$1" "$2" "$3")
12-
curl -H "content-type: application/json" --data "$data" "$api"
12+
curl -s -H "content-type: application/json" --data "$data" "$api"

docker/bin/remove

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/bash
2+
3+
if [ $# != 1 ]; then
4+
echo "usage: create <name>"
5+
exit 1
6+
fi
7+
8+
api="http://index-node.default/"
9+
10+
data=$(printf '{"jsonrpc": "2.0", "method": "subgraph_remove", "params": {"name":"%s"}, "id":"1"}' "$1")
11+
curl -s -H "content-type: application/json" --data "$data" "$api"

0 commit comments

Comments
 (0)