From 47aa099dd149aeaf737006f4291901cdb5d057fc Mon Sep 17 00:00:00 2001 From: Gibson Chikafa Date: Sun, 15 Dec 2024 16:20:08 +0100 Subject: [PATCH] Fixx --- deploy/kubernetes/docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/kubernetes/docker/Dockerfile b/deploy/kubernetes/docker/Dockerfile index 14288eea95..7ab85959f4 100644 --- a/deploy/kubernetes/docker/Dockerfile +++ b/deploy/kubernetes/docker/Dockerfile @@ -22,7 +22,7 @@ RUN chmod -R 777 /data USER rssadmin COPY --chmod=rssadmin:rssadmin rss-${RSS_VERSION}-hadoop${HADOOP_SHORT_VERSION}.tgz /data/rssadmin -RUN tar -xvf /data/rssadmin/rss-${RSS_VERSION}-hadoop${HADOOP_SHORT_VERSION}.tgz -C /data/rssadmin +RUN tar --no-same-owner -xvf /data/rssadmin/rss-${RSS_VERSION}-hadoop${HADOOP_SHORT_VERSION}.tgz -C /data/rssadmin RUN mv /data/rssadmin/rss-${RSS_VERSION}-hadoop${HADOOP_SHORT_VERSION} /data/rssadmin/rss RUN rm /data/rssadmin/rss/conf/rss-env.sh RUN rm -rf /data/rssadmin/rss-${RSS_VERSION}-hadoop${HADOOP_SHORT_VERSION}.tgz @@ -35,12 +35,12 @@ COPY --chmod=755 rss-env.sh /data/rssadmin/rss/bin COPY --chmod=755 start.sh /data/rssadmin/rss/bin -COPY $HADOOP_FILE /data/rssadmin +COPY --chmod=rssadmin:rssadmin $HADOOP_FILE /data/rssadmin RUN mkdir -p /data/rssadmin/hops-${HADOOP_VERSION} -RUN tar -zxvf /data/rssadmin/$HADOOP_FILE --strip-components=1 -C /data/rssadmin/hops-${HADOOP_VERSION} +RUN tar --no-same-owner -zxvf /data/rssadmin/$HADOOP_FILE --strip-components=1 -C /data/rssadmin/hops-${HADOOP_VERSION} RUN mv /data/rssadmin/hops-${HADOOP_VERSION} /data/rssadmin/hadoop RUN rm -rf /data/rssadmin/$HADOOP_FILE -COPY hadoopconfig/ /data/rssadmin/hadoop/etc/hadoop +COPY --chmod=rssadmin:rssadmin hadoopconfig/ /data/rssadmin/hadoop/etc/hadoop ENV RSS_VERSION ${RSS_VERSION}