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

start codespace in <20 sec with contract and ui running #49

Open
dckc opened this issue Jul 18, 2024 · 2 comments
Open

start codespace in <20 sec with contract and ui running #49

dckc opened this issue Jul 18, 2024 · 2 comments
Assignees

Comments

@dckc
Copy link
Member

dckc commented Jul 18, 2024

#47 works great!

But there are opportunities to optimize.

A suggestion I overheard:

  • Get the latest chain image already pulled down in the codespace
  • Have the chain running in the codespace already, producing blocks, contracts installed, UI port loaded. Then it's like 10-15 seconds from "I want a codespace for this dapp" to "i'm running the dapp". This likely could be done with a nightly build of the images for the codespace that pre-starts the chain and stuff.
@amessbee
Copy link
Contributor

@dckc

I suggest changing title to:

start codespace in <120 sec with contract running

and here is why:
Codespaces takes close to 110 seconds to set up the machine currently - that is before any of our (postCreate/postStart) commands for port visibility or yarn install are run. And that is also an optimized container that has a lot of stuff removed from the default container. I am, of course, going to try optimizing that further but I think <120 sec would be a more realistic goal.

@dckc
Copy link
Member Author

dckc commented Jul 19, 2024

If getting substantially less than 120 sec is infeasible, how about we give them some eye candy while it's working?

An excerpt of a talk by MarkM or Dean, or maybe @Jovonni wants yo record something fresh, or just have some animation or intro material with lots of diagrams.

Probably should be a separate issue.

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

No branches or pull requests

2 participants