Advertisement
Guest User

Untitled

a guest
May 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. FROM ubuntu:xenial
  2.  
  3. RUN apt-get update
  4. RUN apt-get dist-upgrade -yf
  5. RUN apt-get clean
  6. RUN apt-get autoremove
  7.  
  8. RUN apt-get install -y git subversion axel wget zip unzip
  9.  
  10. # ---
  11. # Install cross-compile
  12. # ---
  13.  
  14. RUN apt-get install -y build-essential libgmp3-dev libmpfr-dev libx11-6 libx11-dev texinfo flex bison libncurses5 libncurses5-dbg libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc zlib1g-dev libmpfr4 libmpc-dev
  15. RUN mkdir -p gnu-arm
  16. RUN git clone https://github.com/axilirator/gnu-arm-installer.git gnu-arm
  17. RUN cd gnu-arm && sh download.sh
  18. RUN cd gnu-arm && sh build.sh
  19.  
  20. # ---
  21. # default libraries
  22.  
  23. RUN apt-get install -y libpcsclite-dev libtool shtool automake autoconf git-core pkg-config make gcc
  24.  
  25. # ---
  26. # libosmocore
  27.  
  28. RUN apt-get install -y libtalloc-dev
  29. RUN apt-get install -y gnutls-bin gnutls-dev
  30. RUN git clone git://git.osmocom.org/libosmocore.git
  31. RUN cd libosmocore && autoreconf -i && ./configure && make && make install
  32.  
  33. # ---
  34. # osmocom-bb
  35.  
  36. RUN git clone git://git.osmocom.org/osmocom-bb.git
  37. RUN cd osmocom-bb/src && PATH=/gnu-arm/install/bin:$PATH make
  38.  
  39. # ---
  40. # osmo-tetra
  41.  
  42. RUN git clone git://git.osmocom.org/osmo-tetra.git
  43. RUN cd osmo-tetra/src && make
  44.  
  45. # ---
  46. # rtl-sdr
  47.  
  48. RUN git clone git://git.osmocom.org/rtl-sdr.git
  49. RUN apt-get install -y cmake libusb-1.0-0-dev
  50. RUN cd rtl-sdr && mkdir build && cd build && cmake .. && make && make install && ldconfig
  51.  
  52. # ---
  53. # osmo-sdr
  54.  
  55. RUN git clone git://git.osmocom.org/osmo-sdr.git
  56. RUN cd osmo-sdr/software/libosmosdr && mkdir build && cd build && cmake .. && make && make install
  57.  
  58. # ---
  59. # gnuradio
  60. # RUN pass=$(perl -e 'print crypt($ARGV[0], "gnuradio")' $password) && useradd -m -p $pass -s /bin/bash gnuradio && echo 'gnuradio ALL=(ALL:ALL) ALL' >> /etc/sudoers
  61. # RUN su - gnuradio -c "wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio <<< 'y
  62. # y
  63. # gnuradio
  64. # '"
  65.  
  66. # ---
  67. # gr-osmosdr
  68.  
  69. # RUN git clone git://git.osmocom.org/gr-osmosdr
  70. # RUN apt-get install -y libboost-all-dev
  71. # RUN cd gr-osmosdr && mkdir build && cd build && cmake .. && make && make install
  72.  
  73. # ---
  74. WORKDIR /cpuminer
  75. # ENTRYPOINT ["/bin/bash"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement