From bf1d37aae0d6f26eb2d4067114f32f89fce42498 Mon Sep 17 00:00:00 2001 From: Dhrubo Saha Date: Wed, 14 Feb 2024 11:33:26 -0800 Subject: [PATCH] removing skills first (#2089) Signed-off-by: Dhrubo Saha (cherry picked from commit d22dbdd90cd71eea7bc618659e393ede6ad6733f) --- .github/workflows/CI-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI-workflow.yml b/.github/workflows/CI-workflow.yml index 1b25a03353..7077a70031 100644 --- a/.github/workflows/CI-workflow.yml +++ b/.github/workflows/CI-workflow.yml @@ -133,6 +133,7 @@ jobs: if docker pull opensearchstaging/opensearch:$docker_version then echo "FROM opensearchstaging/opensearch:$docker_version" >> Dockerfile + echo "RUN if [ -d /usr/share/opensearch/plugins/opensearch-skills ]; then /usr/share/opensearch/bin/opensearch-plugin remove opensearch-skills; fi" >> Dockerfile echo "RUN if [ -d /usr/share/opensearch/plugins/opensearch-ml ]; then /usr/share/opensearch/bin/opensearch-plugin remove opensearch-ml; fi" >> Dockerfile echo "COPY $plugin /tmp/" >> Dockerfile echo "RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:/tmp/$plugin" >> Dockerfile