Giter Club home page Giter Club logo

Comments (9)

simevo avatar simevo commented on July 23, 2024 1

makes sense!

BTW ts-uscan requires node >=15 because it uses the webcrypto.subtle API which is only available from node 15 onwards (I tried downgrading and launching the tests with jest but some tests failes due to that)

from atproto.

simevo avatar simevo commented on July 23, 2024 1

aaah there's env var DID_NETWORK_URL for that ! now it works

from atproto.

dholms avatar dholms commented on July 23, 2024 1

Yup good looking 👌

It's a bit hacky to run the DID network on the data server for this piece, but i decided to do that so that you wouldn't need to run five servers for the demo. So we use the DID_NETWORK_URL to establish one particular point to go for DID queries, just like in the real network.

from atproto.

simevo avatar simevo commented on July 23, 2024

I have a WIP but at the moment the command to register bob is failing 😊

from atproto.

dholms avatar dholms commented on July 23, 2024

Hopefully we can remove the >=15 requirement. That's from ts-ucan & I forget what actually requires the version 🤔 a bit of investigation is needed

I think we'll refrain from publishing a containerized setup until we have a piece of software that we actually want folks to host. A container for a demo seems to be overkill to me.

If you don't want server terminals open, you can always run it in the background with:
yarn server > log.txt &

& kill the process by getting the PID with
sudo lsof -i :2583 (or whatever port it's on), followed by
kill ${PID}

from atproto.

dholms avatar dholms commented on July 23, 2024

Ah yup that was it! Thanks for the quick investigation. We actually don't use the webcrypto API (we're focusing on Ed25519 keys right now which are not available in WebCrypto). I've been chatting with the Fission team about the possibility of removing the dependency on WebCrypto & having the consumer inject it themselves.

We'll see 🙂

from atproto.

simevo avatar simevo commented on July 23, 2024

anyway I got this far: https://github.com/simevo/adx/tree/issue-110-containerization

and now I know why the "register bob" step keeps failing: because the hostname of the did-network is hardwired to localhost here: https://github.com/bluesky-social/adx/blob/main/common/src/network/util.ts#L43

this cannot work, in server1 and server2 I need to replace that with server1!

from atproto.

simevo avatar simevo commented on July 23, 2024

that's easy to do in the docker-compose.yaml, see simevo@7a91cb3

from atproto.

dholms avatar dholms commented on July 23, 2024

clearing out old issues & we actually do have a dockerized version now!

from atproto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.