diff --git a/3.4.0/scala2.12-java11-ubuntu/Dockerfile b/3.4.0/scala2.12-java11-ubuntu/Dockerfile index 997b8d3..21d95d4 100644 --- a/3.4.0/scala2.12-java11-ubuntu/Dockerfile +++ b/3.4.0/scala2.12-java11-ubuntu/Dockerfile @@ -29,6 +29,7 @@ RUN set -ex && \ mkdir /opt/spark/python && \ mkdir -p /opt/spark/examples && \ mkdir -p /opt/spark/work-dir && \ + chmod g+w /opt/spark/work-dir && \ touch /opt/spark/RELEASE && \ chown -R spark:spark /opt/spark && \ rm /bin/sh && \ @@ -68,6 +69,7 @@ RUN set -ex; \ mv python/pyspark /opt/spark/python/pyspark/; \ mv python/lib /opt/spark/python/lib/; \ mv R /opt/spark/; \ + chmod a+x /opt/decom.sh; \ cd ..; \ rm -rf "$SPARK_TMP"; @@ -76,8 +78,5 @@ COPY entrypoint.sh /opt/ ENV SPARK_HOME /opt/spark WORKDIR /opt/spark/work-dir -RUN chmod g+w /opt/spark/work-dir -RUN chmod a+x /opt/decom.sh -RUN chmod a+x /opt/entrypoint.sh ENTRYPOINT [ "/opt/entrypoint.sh" ] diff --git a/3.4.0/scala2.12-java11-ubuntu/entrypoint.sh b/3.4.0/scala2.12-java11-ubuntu/entrypoint.sh old mode 100644 new mode 100755 diff --git a/Dockerfile.template b/Dockerfile.template index 5fe4f25..db01a87 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -29,6 +29,7 @@ RUN set -ex && \ mkdir /opt/spark/python && \ mkdir -p /opt/spark/examples && \ mkdir -p /opt/spark/work-dir && \ + chmod g+w /opt/spark/work-dir && \ touch /opt/spark/RELEASE && \ chown -R spark:spark /opt/spark && \ rm /bin/sh && \ @@ -68,6 +69,7 @@ RUN set -ex; \ mv python/pyspark /opt/spark/python/pyspark/; \ mv python/lib /opt/spark/python/lib/; \ mv R /opt/spark/; \ + chmod a+x /opt/decom.sh; \ cd ..; \ rm -rf "$SPARK_TMP"; @@ -76,8 +78,5 @@ COPY entrypoint.sh /opt/ ENV SPARK_HOME /opt/spark WORKDIR /opt/spark/work-dir -RUN chmod g+w /opt/spark/work-dir -RUN chmod a+x /opt/decom.sh -RUN chmod a+x /opt/entrypoint.sh ENTRYPOINT [ "/opt/entrypoint.sh" ] diff --git a/add-dockerfiles.sh b/add-dockerfiles.sh index 7dcd7b0..d61601e 100755 --- a/add-dockerfiles.sh +++ b/add-dockerfiles.sh @@ -52,6 +52,7 @@ for TAG in $TAGS; do if [ "$TAG" == "scala2.12-java11-ubuntu" ]; then python3 tools/template.py $OPTS > $VERSION/$TAG/Dockerfile python3 tools/template.py $OPTS -f entrypoint.sh.template > $VERSION/$TAG/entrypoint.sh + chmod a+x $VERSION/$TAG/entrypoint.sh else python3 tools/template.py $OPTS -f r-python.template > $VERSION/$TAG/Dockerfile fi