aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dockerfiles/Ubuntu_15_04.docker
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2016-04-29 15:47:45 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2016-04-29 15:47:45 +0200
commit50a0e950f20cdd833e8d80dbc0d72026e1667b15 (patch)
treec2f200824d3a492b5e91df3a95bf00546616c27a /tests/dockerfiles/Ubuntu_15_04.docker
parent7685bc0501399a06c7de7d6d149930e90bba74ea (diff)
Removed calls to 'cd' bash command and replaced it with WORKDIR
which should work better according to docker's manual
Diffstat (limited to 'tests/dockerfiles/Ubuntu_15_04.docker')
-rw-r--r--tests/dockerfiles/Ubuntu_15_04.docker16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/dockerfiles/Ubuntu_15_04.docker b/tests/dockerfiles/Ubuntu_15_04.docker
index 74304bd..58ef22c 100644
--- a/tests/dockerfiles/Ubuntu_15_04.docker
+++ b/tests/dockerfiles/Ubuntu_15_04.docker
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y uhd-host || \
sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status
-RUN apt-get install -y \
+RUN apt-get update && apt-get install -y \
git \
python \
python-scipy \
@@ -55,9 +55,9 @@ RUN apt-get install -y \
unzip
# Build libosmosdr
- RUN git clone $OSMOSDR_GIT && \
- cd libosmocore && \
- git checkout tags/$OSMOCORE_TAG && \
+RUN git clone $OSMOSDR_GIT
+WORKDIR libosmocore
+RUN git checkout tags/$OSMOCORE_TAG && \
autoreconf -i && \
./configure && \
make && \
@@ -70,10 +70,10 @@ RUN mkdir /root/.gnuradio/
RUN echo "[grc]\nlocal_blocks_path=/usr/local/share/gnuradio/grc/blocks" > \
/root/.gnuradio/config.conf
-RUN mkdir /src/build && \
- cd /src/build && \
- cmake .. && \
+RUN mkdir /src/build
+WORKDIR /src/build
+RUN cmake .. && \
make && \
- # make test && \
+ make test && \
make install && \
ldconfig