-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d79db98
commit dcf63cd
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
plugins=$(ls /tmp) | ||
echo $plugins | ||
for plugin in $plugins; do | ||
echo $plugin | ||
/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install file:///tmp/$plugin | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# docker build --build-arg OSD_VERSION=2.12.0 --build-arg PACKAGE_NAME=wazuh-2.12.0.zip -t test-packages -f osd-test-packages.Dockerfile ./ | ||
|
||
ARG OSD_VERSION | ||
|
||
FROM opensearchproject/opensearch-dashboards:${OSD_VERSION} | ||
|
||
ARG PACKAGE_NAME | ||
|
||
ADD ./${PACKAGE_NAME} /tmp/ | ||
# This is needed to run it local | ||
# | ||
# USER root | ||
# RUN yum update -y && yum install -y unzip | ||
# RUN unzip /tmp/${PACKAGE_NAME} -d /tmp/ | ||
# RUN rm /tmp/${PACKAGE_NAME} | ||
# USER opensearch-dashboards | ||
# | ||
COPY --chown=opensearch-dashboards ./install-plugins.sh / | ||
RUN chmod +x /install-plugins.sh | ||
RUN /install-plugins.sh | ||
|