IGNITE-8546 Permission denied while copying OPTION_LIBS on Openshift - Fixes 
#4427.

Signed-off-by: Dmitriy Pavlov <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/49d7a242
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/49d7a242
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/49d7a242

Branch: refs/heads/ignite-8446
Commit: 49d7a242b02e5b88df106ff4c4575360589d6fd9
Parents: 79f2e7c
Author: Roman Guseinov <[email protected]>
Authored: Wed Jul 25 16:23:39 2018 +0300
Committer: Dmitriy Pavlov <[email protected]>
Committed: Wed Jul 25 16:23:39 2018 +0300

----------------------------------------------------------------------
 docker/apache-ignite/Dockerfile | 9 +++++++++
 docker/apache-ignite/run.sh     | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/49d7a242/docker/apache-ignite/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/apache-ignite/Dockerfile b/docker/apache-ignite/Dockerfile
index fec672e..15b5c3e 100644
--- a/docker/apache-ignite/Dockerfile
+++ b/docker/apache-ignite/Dockerfile
@@ -32,6 +32,15 @@ COPY apache-ignite-fabric* apache-ignite-fabric
 # Copy sh files and set permission
 COPY run.sh $IGNITE_HOME/
 
+# Grant permission to copy optional libs
+RUN chmod 777 ${IGNITE_HOME}/libs
+
+# Grant permission to create work directory
+RUN chmod 777 ${IGNITE_HOME}
+
+# Grant permission to execute entry point
+RUN chmod 555 $IGNITE_HOME/run.sh
+
 # Entry point
 CMD $IGNITE_HOME/run.sh
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/49d7a242/docker/apache-ignite/run.sh
----------------------------------------------------------------------
diff --git a/docker/apache-ignite/run.sh b/docker/apache-ignite/run.sh
index 72cfdd8..798a4f9 100755
--- a/docker/apache-ignite/run.sh
+++ b/docker/apache-ignite/run.sh
@@ -20,7 +20,7 @@ if [ ! -z "$OPTION_LIBS" ]; then
   IFS=, LIBS_LIST=("$OPTION_LIBS")
 
   for lib in ${LIBS_LIST[@]}; do
-    cp -r $IGNITE_HOME/libs/optional/"$lib"/* \
+    cp -r $IGNITE_HOME/libs/optional/"$lib" \
         $IGNITE_HOME/libs/
   done
 fi

Reply via email to