Skip to content

Commit

Permalink
Add bucket name in job definition examples
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidifraia authored Sep 30, 2019
1 parent 51937b4 commit b2ffa09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stable/ard-campaign/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ $ kubectl run --namespace $NAMESPACE redis-client --rm --tty -i --restart='Never

I have no name!@redis-client:/$ redis-cli -h redis-master

redis-master:6379> rpush jobS2 '{"in_scene": "S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708", "s3_dir": "fiji/Sentinel_2/"}'
redis-master:6379> rpush jobS2 '{"in_scene": "S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708", "s3_bucket": "pds-satapps", "s3_dir": "fiji/Sentinel_2/"}'
(integer) 1
redis-master:6379> lrange jobS2 0 -1
1) "{\"in_scene\": \"S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708\", \"s3_dir\": \"fiji/Sentinel_2/\"}"
1) "{\"in_scene\": \"S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708\", \"s3_bucket\": \"pds-satapps\", \"s3_dir\": \"fiji/Sentinel_2/\"}"
```

For [mass insertion](https://redis.io/topics/mass-insert) you can use e.g.:
Expand All @@ -82,7 +82,7 @@ $ kubectl run --namespace $NAMESPACE redis-client --rm --tty -i --restart='Never
--image docker.io/bitnami/redis:5.0.5-debian-9-r104 -- bash

I have no name!@redis-client:/$ cat <<EOF | redis-cli -h redis-master --pipe
rpush jobS2 '{"in_scene": "S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708", "s3_dir": "fiji/Sentinel_2/"}'
rpush jobS2 '{"in_scene": "S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708", "s3_bucket": "pds-satapps", "s3_dir": "fiji/Sentinel_2/"}'
...
EOF
```
Expand Down

0 comments on commit b2ffa09

Please sign in to comment.