From 07177463afe393a7bfc5b71d6962473efc356fa0 Mon Sep 17 00:00:00 2001 From: Vasco Date: Mon, 12 Mar 2018 22:42:13 +0100 Subject: [PATCH] Dockerfile fix - ln issue - jar file was committed in repository --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fba8575..eb8b306 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,9 +40,8 @@ RUN bash -c "if [ ! -f /opt/ros_hadoop/master/dist/hadoop-3.0.0.tar.gz ] ; then RUN tar -xzf /opt/ros_hadoop/latest.tgz -C /opt/ros_hadoop/latest --strip-components=1 && rm /opt/ros_hadoop/latest.tgz RUN tar -xzf /opt/ros_hadoop/master/dist/hadoop-3.0.0.tar.gz -C /opt/apache && rm /opt/ros_hadoop/master/dist/hadoop-3.0.0.tar.gz -RUN ln -s /opt/apache/hadoop-3.0.0 /opt/apache/hadoop && \ - ln -s /opt/ros_hadoop/master/lib/rosbaginputformat.jar /opt/ros_hadoop/latest/lib/rosbaginputformat.jar && \ - ip a && tree -d -L 3 /opt/apache/ +RUN ln -s /opt/apache/hadoop-3.0.0 /opt/apache/hadoop +RUN bash -c "if [ ! -f /opt/ros_hadoop/latest/lib/rosbaginputformat.jar ] ; then ln -s /opt/ros_hadoop/master/lib/rosbaginputformat.jar /opt/ros_hadoop/latest/lib/rosbaginputformat.jar ; fi" RUN printf "\n\n\nfs.defaultFS\nhdfs://localhost:9000\n\n" > /opt/apache/hadoop/etc/hadoop/core-site.xml && \ printf "\n\ndfs.replication\n1\n\n" > /opt/apache/hadoop/etc/hadoop/hdfs-site.xml && \