Skip to content

Add Lab to quickstart #678

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Add Lab to quickstart #678

wants to merge 4 commits into from

Conversation

fnando
Copy link
Member

@fnando fnando commented Apr 1, 2025

No description provided.

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Apr 1, 2025
@leighmcculloch
Copy link
Member

What's the impact on image size and container memory and cpu usage?

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🥳🎉🥳🎉🥳🎉🥳🎉🥳

@@ -26,6 +27,7 @@ export PGPORT=5432
: "${ENABLE_LOGS:=false}"
: "${ENABLE_CORE:=false}"
: "${ENABLE_HORIZON:=false}"
: "${ENABLE_LAB:=false}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the enable lab env and instead rely on the enable env var? The other ones for core and horizon are legacy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, the env can stay, but can we hook it into the ENABLE car as well?

COPY --from=stellar-rpc /bin/stellar-rpc /usr/bin/stellar-rpc
COPY --from=lab /lab /opt/stellar/lab
COPY --from=lab /usr/local/bin/node \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the lab is a static website. Can we build the static site and host it with nginx instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is, but I asked in Slack anyway.

@fnando
Copy link
Member Author

fnando commented Apr 1, 2025

What's the impact on image size and container memory and cpu usage?

@leighmcculloch Unfortunately, is node.js tire fire all around.

$ du -hs /stellar/lab/node_modules/
786M	/stellar/lab/node_modules/

$ du -hs /stellar/lab/build/
314M	/stellar/lab/build/

As for memory and cpu, it should be fine.

$ ps auxwww | grep next
stellar      619  0.1  0.3 22331024 125484 pts/0 Sl   01:52   0:01 next-server (v14.2.26)

@leighmcculloch
Copy link
Member

Oof. I think we should make changes to Lab if needed to make it generatable as a static website. An additional 1GB of image size is multiple times the current size of the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog (Not Ready)
Development

Successfully merging this pull request may close these issues.

2 participants