Skip to content

Commit

Permalink
Merge pull request #86 from LedgerHQ/add-cargo-ledger-setup
Browse files Browse the repository at this point in the history
Add cargo ledger setup step to full / legacy images.
  • Loading branch information
agrojean-ledger authored Oct 3, 2023
2 parents d5c1919 + ed6cf8d commit 2084d9b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.6.0] - 2023-09-18

### Added
- Add `cargo ledger setup` step in full/legacy images so users don't have to do it.

### Changed
- Update curl installation step in full image (work around of https://github.com/curl/curl/issues/11917).
- Remove curl installation from dev-tools image (already installed in full image).

## [3.5.0] - 2023-09-18

Expand Down
1 change: 0 additions & 1 deletion dev-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apk add libusb \
py3-qt5 \
qemu-arm \
jq \
curl \
tesseract-ocr \
mesa-dri-gallium

Expand Down
5 changes: 4 additions & 1 deletion full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG RUST_STABLE_VERSION=1.72.0
ARG RUST_NIGHTLY_VERSION=nightly-2022-12-02

# Add curl for Rust buildchain
RUN apk add curl
RUN apk add --update-cache --upgrade curl

# Define rustup/cargo home directories
ENV RUSTUP_HOME=/opt/rustup \
Expand All @@ -29,3 +29,6 @@ RUN rustup component add rust-src --toolchain $RUST_NIGHTLY_VERSION

# 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.0 cargo-ledger

# Setup cargo ledger (install JSON target files)
RUN cargo ledger setup
3 changes: 3 additions & 0 deletions legacy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ RUN rustup component add rust-src --toolchain $RUST_NIGHTLY_VERSION
# 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.0 cargo-ledger

# Setup cargo ledger (install JSON target files)
RUN cargo ledger setup

# Adding LLVM-15 APT repository and installing it
RUN wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN add-apt-repository -y "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main"
Expand Down

0 comments on commit 2084d9b

Please sign in to comment.