File tree 11 files changed +24
-16
lines changed
default/opensearch-dashboards
11 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
79
79
nvm install v14.18.2
80
80
```
81
81
82
+ Add the lines below to the correct profile file (` ~/.zshrc ` , ` ~/.bashrc ` , etc.).
83
+ ```
84
+ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
85
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
86
+ ```
87
+
82
88
#### Yarn
83
89
84
90
[ Yarn] ( https://classic.yarnpkg.com/en/docs/install ) is required for building and running the OpenSearch Dashboards and plugins
Original file line number Diff line number Diff line change 6
6
ci :
7
7
image :
8
8
name : opensearchstaging/ci-runner:ci-runner-centos7-opensearch-dashboards-build-v1
9
- args : -e NODE_VERSION=10.24.1
10
9
components :
11
10
- name : OpenSearch-Dashboards
12
11
repository : https://github.com/opensearch-project/OpenSearch-Dashboards.git
Original file line number Diff line number Diff line change 7
7
ci :
8
8
image :
9
9
name : opensearchstaging/ci-runner:ci-runner-centos7-opensearch-dashboards-build-v1
10
- args : -e NODE_VERSION=14.18.2
11
10
components :
12
11
- name : OpenSearch-Dashboards
13
12
ref : main
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ case $PLATFORM-$DISTRIBUTION-$ARCHITECTURE in
109
109
;;
110
110
esac
111
111
112
+ echo " Setting node version"
113
+ source $NVM_DIR /nvm.sh
114
+ nvm use
115
+
112
116
echo " Building node modules for core with $PLATFORM -$DISTRIBUTION -$ARCHITECTURE "
113
117
yarn osd bootstrap
114
118
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ PLUGIN_NAME=$(basename $(dirname "$PWD"))
74
74
# This makes it so there is a dependency on having Dashboards pulled already.
75
75
cp -r ../$PLUGIN_FOLDER / ../../OpenSearch-Dashboards/plugins
76
76
echo " BUILD MODULES FOR $PLUGIN_NAME "
77
- (cd ../../OpenSearch-Dashboards && yarn osd bootstrap)
77
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
78
78
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
79
- (cd ../../OpenSearch-Dashboards/ plugins/$PLUGIN_FOLDER && yarn plugin-helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
79
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_FOLDER && yarn plugin-helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
80
80
echo " COPY $PLUGIN_NAME .zip"
81
81
cp -r ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/$PLUGIN_NAME -$VERSION$QUALIFIER_IDENTIFIER .zip $OUTPUT /plugins/
82
82
rm -rf ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ PLUGIN_NAME=$(basename $(dirname "$PWD"))
74
74
# This makes it so there is a dependency on having Dashboards pulled already.
75
75
cp -r ../$PLUGIN_FOLDER / ../../OpenSearch-Dashboards/plugins
76
76
echo " BUILD MODULES FOR $PLUGIN_NAME "
77
- (cd ../../OpenSearch-Dashboards && yarn osd bootstrap)
77
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
78
78
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
79
- (cd ../../OpenSearch-Dashboards/ plugins/$PLUGIN_FOLDER && yarn plugin-helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
79
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_FOLDER && yarn plugin-helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
80
80
echo " COPY $PLUGIN_NAME .zip"
81
81
cp -r ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/$PLUGIN_NAME -$VERSION$QUALIFIER_IDENTIFIER .zip $OUTPUT /plugins/
82
82
rm -rf ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ PLUGIN_NAME=$(basename $(dirname "$PWD"))
74
74
# This makes it so there is a dependency on having Dashboards pulled already.
75
75
cp -r ../$PLUGIN_FOLDER / ../../OpenSearch-Dashboards/plugins
76
76
echo " BUILD MODULES FOR $PLUGIN_NAME "
77
- (cd ../../OpenSearch-Dashboards && yarn osd bootstrap)
77
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
78
78
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
79
- (cd ../../OpenSearch-Dashboards/ plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
79
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
80
80
echo " COPY $PLUGIN_NAME .zip"
81
81
cp -r ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/$PLUGIN_NAME -$VERSION$QUALIFIER_IDENTIFIER .zip $OUTPUT /plugins/
82
82
rm -rf ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ PLUGIN_NAME=$(basename $(dirname "$PWD"))
74
74
# This makes it so there is a dependency on having Dashboards pulled already.
75
75
cp -r ../$PLUGIN_FOLDER / ../../OpenSearch-Dashboards/plugins
76
76
echo " BUILD MODULES FOR $PLUGIN_NAME "
77
- (cd ../../OpenSearch-Dashboards && yarn osd bootstrap)
77
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
78
78
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
79
- (cd ../../OpenSearch-Dashboards/ plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
79
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
80
80
echo " COPY $PLUGIN_NAME .zip"
81
81
cp -r ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/$PLUGIN_NAME -$VERSION$QUALIFIER_IDENTIFIER .zip $OUTPUT /plugins/
82
82
rm -rf ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ PLUGIN_NAME=$(basename $(dirname "$PWD"))
74
74
# This makes it so there is a dependency on having Dashboards pulled already.
75
75
cp -r ../$PLUGIN_FOLDER / ../../OpenSearch-Dashboards/plugins
76
76
echo " BUILD MODULES FOR $PLUGIN_NAME "
77
- (cd ../../OpenSearch-Dashboards && yarn osd bootstrap)
77
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
78
78
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
79
- (cd ../../OpenSearch-Dashboards/ plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
79
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
80
80
echo " COPY $PLUGIN_NAME .zip"
81
81
cp -r ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/$PLUGIN_NAME -$VERSION$QUALIFIER_IDENTIFIER .zip $OUTPUT /plugins/
82
82
rm -rf ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER
Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ PLUGIN_NAME=$(basename $(dirname "$PWD"))
102
102
# This makes it so there is a dependency on having Dashboards pulled already.
103
103
cp -r ../$PLUGIN_FOLDER / ../../OpenSearch-Dashboards/plugins
104
104
echo " BUILD MODULES FOR $PLUGIN_NAME "
105
- (cd ../../OpenSearch-Dashboards && yarn osd bootstrap)
105
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
106
106
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
107
- (cd ../../OpenSearch-Dashboards/ plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
107
+ (cd ../../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_FOLDER && yarn plugin_helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
108
108
ZIP_NAME=` ls ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build | grep .zip`
109
109
unzip ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/$ZIP_NAME -d ../../OpenSearch-Dashboards/plugins/$PLUGIN_FOLDER /build/
110
110
# Reporting uses headless chromium to generate reports, which needs to be included in its artifact
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ PLUGIN_NAME=$(basename "$PWD")
72
72
# This makes it so there is a dependency on having Dashboards pulled already.
73
73
cp -r ../$PLUGIN_NAME / ../OpenSearch-Dashboards/plugins
74
74
echo " BUILD MODULES FOR $PLUGIN_NAME "
75
- (cd ../OpenSearch-Dashboards && yarn osd bootstrap)
75
+ (cd ../OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && yarn osd bootstrap)
76
76
echo " BUILD RELEASE ZIP FOR $PLUGIN_NAME "
77
- (cd ../OpenSearch-Dashboards/ plugins/$PLUGIN_NAME && yarn plugin-helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
77
+ (cd ../../ OpenSearch-Dashboards && source $NVM_DIR /nvm.sh && nvm use && cd plugins/$PLUGIN_NAME && yarn plugin-helpers build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER )
78
78
echo " COPY $PLUGIN_NAME .zip"
79
79
cp -r ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME /build/$PLUGIN_NAME -$VERSION$QUALIFIER_IDENTIFIER .zip $OUTPUT /plugins/
80
80
rm -rf ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME
You can’t perform that action at this time.
0 commit comments