-
Notifications
You must be signed in to change notification settings - Fork 217
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
Open
fnando
wants to merge
16
commits into
main
Choose a base branch
from
add-lab-to-quickstart
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+167
−31
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4ffb550
WIP
fnando 3190014
WIP
fnando a4421b3
WIP
fnando fc8c6bf
428241f
Change default lab ref.
fnando 421bff1
Add build arg for lab.
fnando 9992a54
Add stellar-lab requirement.
fnando 6805693
fix typo
fnando e9d2126
add missing type
fnando a28757e
use local dockerfile
fnando c50eff7
checkout repo
fnando 99a1f27
free up some disk space
fnando 334d953
cache stellar-lab
fnando ae4f974
fix cache key
fnando 8ac6ffe
remove unnecessary docker pruning
fnando d5d6e24
remove git dir
fnando File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:22 AS builder | ||
|
||
ARG NEXT_PUBLIC_COMMIT_HASH | ||
ENV NEXT_TELEMETRY_DISABLED=1 | ||
ENV PORT=8002 | ||
WORKDIR /lab | ||
RUN git clone https://github.com/stellar/laboratory /lab | ||
RUN git fetch origin ${NEXT_PUBLIC_COMMIT_HASH} | ||
RUN git checkout ${NEXT_PUBLIC_COMMIT_HASH} | ||
fnando marked this conversation as resolved.
Show resolved
Hide resolved
|
||
RUN rm -rf .git | ||
RUN yarn install | ||
ENV NEXT_PUBLIC_DEFAULT_NETWORK=custom | ||
ENV NEXT_BASE_PATH=/lab | ||
RUN yarn build | ||
|
||
EXPOSE 8002 | ||
CMD ["npm", "start"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
echo "starting lab..." | ||
export PORT=8002 | ||
export NEXT_BASE_PATH=/lab | ||
export NEXT_PUBLIC_DEFAULT_NETWORK=custom | ||
./node_modules/.bin/next start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
location /lab { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://127.0.0.1:8002; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[program:stellar-lab] | ||
user=stellar | ||
directory=/opt/stellar/lab | ||
command=/opt/stellar-default/common/lab/bin/start | ||
autostart=false | ||
startretries=50 | ||
autorestart=true | ||
priority=60 | ||
redirect_stderr=true |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.