Browse Source

Merge 9a910f2b25 into 832877c68c

pull/3/merge
Sergey Rubanov 6 years ago
committed by GitHub
parent
commit
ac1332ea22
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Dockerfile
  2. 9
      README.md

3
Dockerfile

@ -6,6 +6,7 @@ WORKDIR /code
ENV BOLOS_ENV /opt/bolos-env ENV BOLOS_ENV /opt/bolos-env
ENV BOLOS_SDK /opt/bolos-sdk ENV BOLOS_SDK /opt/bolos-sdk
ENV BOLOS_VERSION tags/nanos-1552
RUN apt-get update RUN apt-get update
@ -29,7 +30,7 @@ RUN echo "Install custom clang" && \
RUN echo "Install Ledger Nano S SDK" && \ RUN echo "Install Ledger Nano S SDK" && \
git clone https://github.com/LedgerHQ/nanos-secure-sdk.git ${BOLOS_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 COPY ./bin/init /usr/local/bin/init

9
README.md

@ -32,6 +32,15 @@ To run an arbitrary command in your project dir:
docker run -v ${PWD}:/code lukechilds/ledger-sdk 'make clean' 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 ## License
MIT © Luke Childs MIT © Luke Childs

Loading…
Cancel
Save