2017-11-04 00:56:05 +00:00
|
|
|
# initialize from the image
|
|
|
|
|
|
|
|
FROM debian:9
|
|
|
|
|
|
|
|
# install build tools and dependencies
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-11-04 14:01:44 +00:00
|
|
|
build-essential wget git python3-pip \
|
2017-11-04 00:56:05 +00:00
|
|
|
gcc-multilib
|
|
|
|
|
2017-11-04 14:01:44 +00:00
|
|
|
# download and setup toolchain
|
|
|
|
|
2018-01-04 17:18:24 +00:00
|
|
|
ENV TOOLCHAIN_SHORTVER=7-2017q4
|
|
|
|
ENV TOOLCHAIN_LONGVER=gcc-arm-none-eabi-7-2017-q4-major
|
2017-11-04 14:01:44 +00:00
|
|
|
RUN cd /opt && wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/$TOOLCHAIN_SHORTVER/$TOOLCHAIN_LONGVER-linux.tar.bz2 && tar xfj $TOOLCHAIN_LONGVER-linux.tar.bz2
|
|
|
|
ENV PATH=/opt/$TOOLCHAIN_LONGVER/bin:$PATH
|
|
|
|
|
|
|
|
# install python tools
|
|
|
|
|
2017-11-04 00:56:05 +00:00
|
|
|
RUN pip3 install click pyblake2 scons
|
|
|
|
RUN pip3 install --no-deps git+https://github.com/trezor/python-trezor.git@master
|
|
|
|
|
|
|
|
# workarounds for weird default install
|
|
|
|
|
|
|
|
RUN ln -s python3 /usr/bin/python
|
2017-12-05 22:54:17 +00:00
|
|
|
RUN ln -s dist-packages /usr/local/lib/python3.5/site-packages
|
2017-11-04 00:56:05 +00:00
|
|
|
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
|