Skip to content

Commit

Permalink
Comment the unzip process
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriscos committed Nov 27, 2024
1 parent 9c831e9 commit 40d7f38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scripts/test-packages/install-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# echo $plugin
# unzip /tmp/$plugin -d /tmp/unziped/
# done
plugins=$(ls /tmp/unziped)
plugins=$(ls /tmp/plugins)
for plugin in $plugins; do
echo $plugin
/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install file:///tmp/unziped/$plugin
/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install file:///tmp/plugins/$plugin/$(ls /tmp/plugins/$plugin)
done
20 changes: 10 additions & 10 deletions scripts/test-packages/osd-test-packages.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ ARG PACKAGE_NAME
ADD ./plugins /tmp/plugins/
# This is needed to run it local

RUN mkdir /tmp/unziped
USER root
RUN mkdir /tmp/test
RUN cp /tmp/plugins/* /tmp/test
RUN yum update -y && yum install -y unzip
RUN ls -la /tmp/test
RUN for plugin in $(ls /tmp/test); do \
echo $plugin; \
unzip /tmp/test/$plugin -d /tmp/unziped/; \
done
# RUN mkdir /tmp/unziped
# USER root
# RUN mkdir /tmp/test
# RUN cp /tmp/plugins/* /tmp/test
# RUN yum update -y && yum install -y unzip
# RUN ls -la /tmp/test
# RUN for plugin in $(ls /tmp/test); do \
# echo $plugin; \
# unzip /tmp/test/$plugin -d /tmp/unziped/; \
# done
# RUN rm /tmp/${PACKAGE_NAME}
# echo $plugins
# for plugin in $plugins; do
Expand Down

0 comments on commit 40d7f38

Please sign in to comment.