-
Notifications
You must be signed in to change notification settings - Fork 909
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
Update Dockerfile #173
base: update-P21
Are you sure you want to change the base?
Update Dockerfile #173
Conversation
Hello @Julian-dev28! Do you have any feedback? |
.cargo/config.toml
Outdated
@@ -1,7 +1,7 @@ | |||
# paths = ["/path/to/override"] # path dependency overrides | |||
|
|||
[alias] # command aliases | |||
install_stellar = "install --locked stellar-cli --version 21.0.0 --force --root ./target stellar-cli --debug" | |||
install_soroban = "install --git https://github.com/AhaLabs/soroban-tools --rev c7fb7e08ba8efa9828d9df863d991558f269e35b --root ./target soroban-cli --debug" |
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.
What is the reason behind this change?
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 though it was part of the dependencies needed for an update, if not I can rollback that change and update the Dockerfile accorndingly 🫡
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.
The example shouldn't have any special logic for installing the CLI and definitely shouldn't be installing an arbitrary commit from another repo.
Fwiw that commit sha is not currently present on any branch or tag of the stellar/stellar-cli or AhaLabs/soroban-tools repos, meaning that the commit could be from any fork and may contain history and code from anywhere.
Imo we should direct folks to the getting started help where several options for installing the CLI exist.
Why: For some folks installing the CLI from source is impossible or at least a high barrier due to resource limitations, or dependencies they don't have installed. The main install instructions for the CLI include ways to install binaries without from source, and folks should use them where possible.
So the improvement should be imo to remove this bespoke install_stellar
command and ask users to install the stellar-cli themselves.
Hey @danielcdz I was hoping this bounty would resolve the issues encountered during the local deployment workflow, but it looks like there are still some challenges to address. Specifically, there might be an issue with the It would be helpful if @leighmcculloch could weigh in on the correct SHA to use. With this fixed, users should be able to run
I hope this feedback provides some useful guidance. Looking forward to your next iteration! |
Got it, I'll wait for @leighmcculloch for the SHA to use, also @Julian-dev28 I had a question, In the description of the issue I'm trying to solve you mentioned changes and updates in the Dockerfile and docker-compose, but you are mentioning the quickstart.sh and initialize.sh, the changes in the Dockerfile affect these sh files? I just want to know If I'm following the right path |
@Julian-dev28 I commented on the thread about the SHA, see above at #173 (comment). Regarding quickstart, the stellar-cli now embeds the quickstart, so it would be ideal if this example uses quickstart, that it is used via the stellar-cli. That might mean there is no docker-compose needed, and instead the README can say to first run I understand it may be intuitive to say that an approach like that won't be automated enough, but an approach like that is still relatively simple, and it educates a user on how to use the stellar-cli to test against a live network and teaches them how to use the foundational tools. Where-as scripts that try and hide complexity and reduce it all down to a one line command result instead in teaching a developer about those scripts and that approach. |
Thanks for the follow up @leighmcculloch! |
@danielcdz Keep up the good work. I look forward to reviewing this by next week! |
@Julian-dev28 @leighmcculloch I removed the install stellar command from the Dockerfile and the |
Issues related
Work done
.cargo/config.toml