Skip to content

Commit

Permalink
old reva version and /home/my-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Feb 27, 2023
1 parent cd65ac4 commit 3c464fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
16 changes: 5 additions & 11 deletions sciencemesh-open-with.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,12 @@ driver = "json"
users = "users.testnet.json"

[http]
enabled_services = ["ocmd","sciencemesh"]
enabled_services = ["ocmd"]
enabled_middlewares = ["providerauthorizer", "cors"]
address = "0.0.0.0:443"
certfile = "/etc/revad/tls/revad1.crt"
keyfile = "/etc/revad/tls/revad1.key"

[http.services.sciencemesh]

[http.services.dataprovider]
driver = "localhome"

Expand Down Expand Up @@ -166,14 +164,10 @@ prefix = "ocs"

[http.middlewares.cors]

# example data transfer service configuration
[grpc.services.datatx]
# rclone is the default data transfer driver
txdriver = "rclone"
# the shares,transfers db file (default: /var/tmp/reva/datatx-shares.json)
tx_shares_file = ""
# base folder of the data transfers (default: /home/DataTransfers)
data_transfers_folder = ""
# [grpc.services.datatx]
# txdriver = "rclone"
# tx_shares_file = ""
# data_transfers_folder = ""

# rclone data transfer driver
[grpc.services.datatx.txdrivers.rclone]
Expand Down
7 changes: 4 additions & 3 deletions scripts/sciencemesh-open-with.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ docker network create appsnet || true

docker compose -f ./sciencemesh-open-with.yaml up -d

docker run -d --network=testnet --name=revad1.docker -e HOST=revad1 pondersource/dev-stock-revad-network-beta
docker run -d --network=testnet --name=revad1.docker -e HOST=revad1 pondersource/dev-stock-revad
docker container cp ./example.txt revad1.docker:/etc/revad/example.txt
docker container cp ./sciencemesh-open-with.toml revad1.docker:/etc/revad/revad1.toml
docker restart revad1.docker
echo Now log in as einstein/relativity
docker exec -it revad1.docker /reva/cmd/reva/reva -insecure -host localhost:19000 login basic
docker exec -it revad1.docker /reva/cmd/reva/reva -insecure -host localhost:19000 upload --protocol=simple ./example.txt /home/example.txt
docker exec -it revad1.docker /reva/cmd/reva/reva -insecure -host localhost:19000 open-in-app /home/example.txt read
docker exec -it revad1.docker /reva/cmd/reva/reva -insecure -host localhost:19000 mkdir /home/my-folder
docker exec -it revad1.docker /reva/cmd/reva/reva -insecure -host localhost:19000 upload --protocol=simple ./example.txt /home/my-folder/example.txt
docker exec -it revad1.docker /reva/cmd/reva/reva -insecure -host localhost:19000 open-in-app /home/my-folder/example.txt read

0 comments on commit 3c464fa

Please sign in to comment.