Skip to content

Commit

Permalink
lite/legacy: Dockerfile: Add llvm15 binaries for some Rust deployment…
Browse files Browse the repository at this point in the history
…s needs
  • Loading branch information
Xavier Chapron committed Sep 14, 2023
1 parent 2d99972 commit 5efdfea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions legacy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN apt-get install -qy \
clang-$LLVM_VERSION \
cmake \
curl \
wget \
gpg-agent \
software-properties-common \
git \
lld-$LLVM_VERSION \
make \
Expand Down Expand Up @@ -62,6 +65,12 @@ RUN rustup component add rust-src --toolchain $RUST_NIGHTLY_VERSION
# Add cargo ledger (needs a version of Rust >= 1.70)
RUN cargo install --locked --git=https://github.com/LedgerHQ/cargo-ledger.git --rev 1.1.0 cargo-ledger

# 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"
RUN apt-get update \
&& apt-get install -y --no-install-recommends llvm-15

# Python package to load app onto device
RUN pip3 install ledgerblue

Expand Down
7 changes: 7 additions & 0 deletions lite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ ENV LANG C.UTF-8

RUN apk update
RUN apk upgrade

# Adding LLVM-15 APT repository and installing it
# LLVM-15 is only present starting from the v3.17 Alpine version
RUN apk add --repository=http://dl-cdn.alpinelinux.org/alpine/v3.17/main llvm15
RUN ln -s /usr/lib/llvm15/bin/llvm-objcopy /usr/bin/llvm-objcopy-15
RUN ln -s /usr/lib/llvm15/bin/llvm-nm /usr/bin/llvm-nm-15

RUN apk add \
bash \
clang \
Expand Down

0 comments on commit 5efdfea

Please sign in to comment.