Coder Social home page Coder Social logo

Offline dev story about l1-node HOT 6 CLOSED

filecoin-saturn avatar filecoin-saturn commented on June 12, 2024
Offline dev story

from l1-node.

Comments (6)

DiegoRBaquero avatar DiegoRBaquero commented on June 12, 2024

@juliangruber triaging issues, can we close this one?

from l1-node.

juliangruber avatar juliangruber commented on June 12, 2024

I ran ./node build once to cover the initial setup cost, then I switched to tethering to simulate slow internet, then ran it again to measured the iteration speed:

./node build  0.26s user 0.16s system 8% cpu 4.799 total

5s is by no means terrible, but also not great. Depending on the internet speed it, would be awesome if it could build without making any network requests.

from l1-node.

DiegoRBaquero avatar DiegoRBaquero commented on June 12, 2024

This is mostly decided by docker itself and its caching. If there's a new image then everything gets rebuilt. You'd need a pass-through cache registry that works offline. What are you trying to test offline? You can run the shim totally offline if you have the npm dependencies installed.

from l1-node.

juliangruber avatar juliangruber commented on June 12, 2024

I was working on the L1 at that time, being on slow internet was a side effect, I didn't mean to test it specifically. Running the shim is half the story, because quite a lot of logic lives inside nginx.

from l1-node.

DiegoRBaquero avatar DiegoRBaquero commented on June 12, 2024

@juliangruber this is really up to docker, you can't force it offline, how would you like to proceed with this issue?

from l1-node.

juliangruber avatar juliangruber commented on June 12, 2024

Let's close it for now, since there are other far more important issues.

Just thinking out loud, it could help if you can build docker images without fetching any dependencies from the internet, and only updating what you changed locally

from l1-node.

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.