Skip to content

Commit

Permalink
Use pypi to install latest ledgerwallet version and crates io for lat…
Browse files Browse the repository at this point in the history
…est cargo-ledger version.
  • Loading branch information
agrojean-ledger committed Dec 11, 2023
1 parent 058b3b5 commit cc7e92c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ RUN apk add -t python_build_deps python3-dev \
libffi-dev

# Install ledgerctl, which is used by cargo ledger for loading or dumping an APDU app file.
RUN pip3 install git+https://github.com/LedgerHQ/ledgerctl
RUN pip3 install ledgerwallet

# Cleanup, remove packages that aren't needed anymore
RUN apk del python_build_deps

# Add cargo ledger (needs a version of Rust >= 1.70)
RUN cargo +$RUST_STABLE_VERSION install --locked --git=https://github.com/LedgerHQ/cargo-ledger.git --rev 1.1.1 cargo-ledger
RUN cargo +$RUST_STABLE_VERSION install cargo-ledger

# Setup cargo ledger (install JSON target files)
RUN cargo ledger setup
Expand Down
3 changes: 3 additions & 0 deletions legacy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ RUN rustup target add thumbv6m-none-eabi --toolchain $RUST_NIGHTLY_VERSION
# Adding rust-src component to nightly channel
RUN rustup component add rust-src --toolchain $RUST_NIGHTLY_VERSION

# Add ledgerwallet python package used by cargo ledger to generate the app APDU file
RUN pip3 install ledgerwallet

# Add cargo ledger (needs a version of Rust >= 1.70)
RUN cargo +$RUST_STABLE_VERSION install --locked --git=https://github.com/LedgerHQ/cargo-ledger.git --rev 1.1.1 cargo-ledger

Expand Down

0 comments on commit cc7e92c

Please sign in to comment.