2018-02-20 11:58:45 +00:00
|
|
|
FROM kalilinux/kali-linux-docker
|
|
|
|
MAINTAINER Piotr Krysik
|
|
|
|
|
2018-04-24 20:27:40 +00:00
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2018-02-20 11:58:45 +00:00
|
|
|
cmake \
|
|
|
|
autoconf \
|
|
|
|
libtool \
|
2018-02-21 03:57:31 +00:00
|
|
|
pkg-config \
|
2018-02-20 11:58:45 +00:00
|
|
|
build-essential \
|
|
|
|
python-docutils \
|
|
|
|
libcppunit-dev \
|
|
|
|
swig \
|
|
|
|
doxygen \
|
|
|
|
liblog4cpp5-dev \
|
|
|
|
python-scipy \
|
|
|
|
gnuradio-dev \
|
|
|
|
gr-osmosdr \
|
|
|
|
libosmocore-dev
|
|
|
|
|
|
|
|
COPY ./ /src/
|
|
|
|
RUN ls /src
|
|
|
|
|
|
|
|
RUN mkdir /src/build
|
|
|
|
WORKDIR /src/build
|
|
|
|
RUN cmake .. && \
|
2018-02-21 04:12:04 +00:00
|
|
|
# The parallel build sometimes fails when the .grc_gnuradio
|
|
|
|
# and .gnuradio directories do not exist
|
|
|
|
mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
|
Workaround for the grcc failure
See https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379587145
Traceback (most recent call last):
File "/usr/bin/grcc", line 29, in <module>
from gnuradio import gr
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/__init__.py", line 41, in <module>
from runtime_swig import *
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 17, in <module>
_runtime_swig = swig_import_helper()
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 16, in swig_import_helper
return importlib.import_module('_runtime_swig')
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named _runtime_swig
2018-04-09 10:00:55 +00:00
|
|
|
# Workaround for the grcc failure
|
|
|
|
# https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379587145
|
|
|
|
ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 && \
|
2018-02-21 04:12:04 +00:00
|
|
|
make -j $(nproc) && \
|
2018-02-20 11:58:45 +00:00
|
|
|
make install && \
|
|
|
|
ldconfig && \
|
|
|
|
make test
|