aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dockerfiles/CentOS_7.Dockerfile
diff options
context:
space:
mode:
authorVasil Velichkov <vvvelichkov@gmail.com>2018-04-24 18:36:57 +0300
committerPiotr Krysik <pkrysik@elka.pw.edu.pl>2018-06-18 15:11:17 +0200
commit8f4b5ba3724675f204db0821398dc8d6b30bf86a (patch)
tree8a0c06de08ef9b1ef7e2be81ce665b034843e24e /tests/dockerfiles/CentOS_7.Dockerfile
parent014ed2be5ce8ffd8b3aab211258439af9662d7d1 (diff)
Add CentOS7 docker container
Diffstat (limited to 'tests/dockerfiles/CentOS_7.Dockerfile')
-rw-r--r--tests/dockerfiles/CentOS_7.Dockerfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/dockerfiles/CentOS_7.Dockerfile b/tests/dockerfiles/CentOS_7.Dockerfile
new file mode 100644
index 0000000..b5c235d
--- /dev/null
+++ b/tests/dockerfiles/CentOS_7.Dockerfile
@@ -0,0 +1,32 @@
+FROM centos:7
+
+RUN yum install -y \
+ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
+ yum install -y \
+ gcc-c++ \
+ make \
+ cmake3 \
+ pkgconfig \
+ boost-devel \
+ gnuradio-devel \
+ libosmocore-devel \
+ gr-osmosdr \
+ swig \
+ doxygen \
+ python2-docutils \
+ cppunit-devel
+
+COPY ./ /src/
+
+RUN yum install -y patch && \
+ patch -p0 < /src/tests/dockerfiles/CentOS_7_pygtk2.patch
+
+WORKDIR /src/build
+RUN cmake3 -DENABLE_GRGSM_LIVEMON=OFF .. && \
+ # The parallel build sometimes fails when the .grc_gnuradio
+ # and .gnuradio directories do not exist
+ mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
+ make -j $(nproc) && \
+ make install && \
+ ldconfig && \
+ make test