Sergey Rubanov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
1 deletions
-
Dockerfile
-
README.md
|
|
@ -6,6 +6,7 @@ WORKDIR /code |
|
|
|
|
|
|
|
ENV BOLOS_ENV /opt/bolos-env |
|
|
|
ENV BOLOS_SDK /opt/bolos-sdk |
|
|
|
ENV BOLOS_VERSION tags/nanos-1552 |
|
|
|
|
|
|
|
RUN apt-get update |
|
|
|
|
|
|
@ -29,7 +30,7 @@ RUN echo "Install custom clang" && \ |
|
|
|
|
|
|
|
RUN echo "Install Ledger Nano S SDK" && \ |
|
|
|
git clone https://github.com/LedgerHQ/nanos-secure-sdk.git ${BOLOS_SDK} && \ |
|
|
|
cd ${BOLOS_SDK} && git checkout tags/nanos-1552 |
|
|
|
cd ${BOLOS_SDK} && git checkout ${BOLOS_VERSION} |
|
|
|
|
|
|
|
COPY ./bin/init /usr/local/bin/init |
|
|
|
|
|
|
|
|
|
@ -32,6 +32,15 @@ To run an arbitrary command in your project dir: |
|
|
|
docker run -v ${PWD}:/code lukechilds/ledger-sdk 'make clean' |
|
|
|
``` |
|
|
|
|
|
|
|
The following environment variables can be set to customise the build (here |
|
|
|
shown with defaults): |
|
|
|
|
|
|
|
```sh |
|
|
|
docker run \ |
|
|
|
-e "BOLOS_VERSION=tags/nanos-1552" \ # BOLOS SDK git commit/tag/branch to checkout |
|
|
|
-v ${PWD}:/code lukechilds/ledger-sdk |
|
|
|
``` |
|
|
|
|
|
|
|
## License |
|
|
|
|
|
|
|
MIT © Luke Childs |
|
|
|