Hello all
i am building a docker image containing spark 2.0, but for some reason when i get to the last command
of the file i am getting this exception
emoving intermediate container a723f9c1fadb
Step 32 : WORKDIR /spark
—> Running in 2936d1e72af3
—> 429b0eb79cba
Removing intermediate container 2936d1e72af3
Step 33 : RUN chmod -R 700 /bin/sh
—> Running in ab908293b5fa
—> ed8f1baba9e0
Removing intermediate container ab908293b5fa
Step 34 : RUN ./build mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package
—> Running in 8c2aa6d59842
/bin/sh: 1: ./build: Permission denied
The command ‘/bin/sh -c ./build mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package’ returned a non-zero code: 126
Which is bizarre to me as
- i am running as root
- in the previous statement i did a chmod 700 to /bin/sh
Could anyone advise on what might be wrong?
pls find at the end of this file the last 10 lines of my docker image
kind regards
marco
Git
RUN echo "Installing git…"
RUN apt-get install -y git
Spark
RUN echo "Installing Apache spark 2.0"
RUN git clone git://github.com/apache/spark.git
WORKDIR /spark
adding permissions to ssh
RUN chmod -R 700 /bin/sh
RUN ./build mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package