Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrating to w3up #97

Merged
merged 9 commits into from
Jan 5, 2024
Merged

migrating to w3up #97

merged 9 commits into from
Jan 5, 2024

Conversation

sudeepdino008
Copy link
Contributor

@sudeepdino008 sudeepdino008 commented Dec 14, 2023

  • Have a look at README.md for how web3.storage works now with UCAN authentication system.
  • given the go-w3up library is under heavy development; we decided to use mature w3cli tool, invocating it from golang code.
  • bunch of input parameters change for ipfs-pinner now.
  • ipfs-pinner is now configured to upload to a space within an account (as opposed to uploading within an account, as before). This means that if we decide to have separate spaces (e.g. separate spaces for brp/bsp), we would need different ipfs-pinner instances to run.

- apart from upload using `w3 up`, there is some setup required.
- the agent needs to be setup by the help of `w3 whoami`
- The space needs to be setup by importing the delegation proof
@sudeepdino008 sudeepdino008 force-pushed the w3up_migration branch 10 times, most recently from 57ffc7a to 652116d Compare January 4, 2024 12:35
.github/workflows/golangci-lint.yml Outdated Show resolved Hide resolved
core/support.go Outdated Show resolved Hide resolved
@noslav
Copy link
Member

noslav commented Jan 4, 2024

docker compose files need to be modified to accept the new env vars replacing the old ones

@noslav
Copy link
Member

noslav commented Jan 4, 2024

There has to be explicit directions to the validators for -

  1. downloading the proof.out file

  2. moving this file to the volume being assigned in the rudder docker-compose-mbase/mbeam.yml run, for example sudo mv /home/blockchain/rudder/proof.out ~/.ipfs/proof.out for line https://github.com/covalenthq/rudder/blob/4fa0103a1f0be45af36a0fb4a3bcf6da12c6f4bd/docker-compose-mbase.yml#L9

    volumes:
      - ~/.ipfs:/root/.ipfs/

and then set the docker env

Environment="W3_DELEGATION_FILE=/root/.ipfs/proof.out"

so that the docker instance can find the proof.out file within the mounted volume

  1. Setting both W3_AGENT_KEY and W3_DELEGATION_FILE in their systemd definitions which is being used to run ipfs-pinner or rudder

@sudeepdino008
Copy link
Contributor Author

docker compose files need to be modified to accept the new env vars replacing the old ones

no docker compose file in this repo. If you meant those in rudder, then yes that's been done.

@noslav noslav merged commit 89ca947 into develop Jan 5, 2024
3 checks passed
@noslav noslav mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants