Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

fix: Fixes #13071 change order of ldd command and update ./docker/README.md #13072

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

ltfschoen
Copy link
Contributor

@ltfschoen ltfschoen commented Jan 5, 2023

  • Description: You added a brief description of the PR, e.g.:
    Refer to Issue substrate_builder.Dockerfile error ldd: not found and outdated ./docker/README.md #13071

    Removes all the binaries after using the ldd command, otherwise if it's done the other way around the ldd command no longer exists. Also updated the associated README.md

  • Related Issues: You mentioned a related issue if this PR is related to it, e.g. Fixes #228 or Related #1337.

  • 2 Reviewers: You asked at least two reviewers to review. If you aren't sure, start with GH suggestions.
    @bkchr @ggwpez

  • Style Guide: Your PR adheres to the style guide

    • In particular, mind the maximal line length of 100 (120 in exceptional circumstances).
    • There is no commented code checked in unless necessary.
    • Any panickers in the runtime have a proof or were removed.

docker/README.md Outdated
@@ -12,6 +12,13 @@ You should refer to the .Dockerfile for the actual list. At the time of editing,
- node-template
- chain-spec-builder

> Warning: Currently the pre-built image [`parity/substrate:latest`](https://hub.docker.com/layers/paritytech/substrate/latest/images/sha256-d1be27ff2a93d7de49a5ef9449b4e7aa5f479d9d03f808ec34bf2e8cea89cdc4?context=explore) is outdated and uses `substrate 3.0.0-dev-ea387c63471`. The entrypoint it uses is `ENTRYPOINT ["/usr/local/bin/substrate"]` so it only supports running that old Substrate binary and to use the image you need to provide options to it in the Docker run command but without passing the Substrate binary (i.e. `docker run --rm -it parity/substrate --version`).
Copy link
Member

Choose a reason for hiding this comment

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

What is that conveying?

I think we should remove this.

Copy link
Contributor Author

@ltfschoen ltfschoen Jan 5, 2023

Choose a reason for hiding this comment

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

yes if the user follows the instructions and runs ./build.sh before running the docker run ... commands then it'll build an image and a container with the latest substrate.

but if they forget to run the ./build.sh step (by not following the instructions, although that's unlikely..) then it'll fetch that old substrate image parity/substrate:latest from docker hub that is 3 years old, and they may not realise they're not using the latest version until it doesn't function as intended, which may lead to confusion.

do you think it would be worth perhaps changing it to > Note: If you do not first run the build.sh script to generate the parity/substrate image before using the docker run command to create a container based on that image name, then it will instead fetch a pre-generated version of that image that may not be the latest version.? or just remove it?

is there a reason why that parity/substrate:latest doesn't have the latest version like the image ci-linux:production?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i've pushed a commit removing the warning, i think it's sufficient to expect users to follow the instructions

@bkchr bkchr requested a review from ggwpez January 11, 2023 14:48
@stale
Copy link

stale bot commented Feb 10, 2023

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

@bkchr bkchr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit and removed A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. labels Mar 7, 2023
@bkchr bkchr merged commit f59f501 into paritytech:master Mar 7, 2023
ukint-vs pushed a commit to gear-tech/substrate that referenced this pull request Apr 10, 2023
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants