You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. # we need python2 support, which was dropped after buster:
  2. FROM debian:buster
  3. RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  4. RUN apt-get update
  5. RUN apt-get install -y apt-utils
  6. # Install and configure locale `en_US.UTF-8`
  7. RUN apt-get install -y locales && \
  8. sed -i -e "s/# $en_US.*/en_US.UTF-8 UTF-8/" /etc/locale.gen && \
  9. dpkg-reconfigure --frontend=noninteractive locales && \
  10. update-locale LANG=en_US.UTF-8
  11. ENV LANG=en_US.UTF-8
  12. RUN apt-get update
  13. RUN apt-get install -y git python2 python-pip g++ cmake python-ply python-tk tix pkg-config libssl-dev python-setuptools
  14. # create a user:
  15. RUN useradd -ms /bin/bash user
  16. USER user
  17. WORKDIR /home/user
  18. RUN git clone --recurse-submodules https://github.com/kenmcmil/ivy.git
  19. WORKDIR /home/user/ivy/
  20. RUN git checkout 271ee38980699115508eb90a0dd01deeb750a94b
  21. RUN python2.7 build_submodules.py
  22. RUN mkdir -p "/home/user/python/lib/python2.7/site-packages"
  23. ENV PYTHONPATH="/home/user/python/lib/python2.7/site-packages"
  24. # need to install pyparsing manually because otherwise wrong version found
  25. RUN pip install pyparsing
  26. RUN python2.7 setup.py install --prefix="/home/user/python/"
  27. ENV PATH=$PATH:"/home/user/python/bin/"
  28. WORKDIR /home/user/tendermint-proof/
  29. ENTRYPOINT ["/home/user/tendermint-proof/check_proofs.sh"]