forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bundle] post-install for core applications
Adding install script for OpenSearch and OpenSearch Dashboards so the bundles include default files. These files include: * opensearch-tar-install.sh * config/opensearch_dashboards.yml However, we did not want to include opensearch-tar-install.sh into the OpenSearch Dashboards bundle because the script will fail to execute as it is only expected to be an OpenSearch project. Issue resolved: opensearch-project#610 Signed-off-by: Kawika Avilla <[email protected]>
- Loading branch information
Showing
7 changed files
with
136 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# The OpenSearch Contributors require contributions made to | ||
# this file be licensed under the Apache-2.0 license or a | ||
# compatible open source license. | ||
|
||
set -ex | ||
|
||
function usage() { | ||
echo "Usage: $0 [args]" | ||
echo "" | ||
echo "Arguments:" | ||
echo -e "-a ARTIFACTS\t[Required] Location of build artifacts." | ||
echo -e "-o OUTPUT\t[Required] Output path." | ||
echo -e "-h help" | ||
} | ||
|
||
while getopts ":h:a:o:" arg; do | ||
case $arg in | ||
o) | ||
OUTPUT=$OPTARG | ||
;; | ||
a) | ||
ARTIFACTS=$OPTARG | ||
;; | ||
h) | ||
usage | ||
exit 1 | ||
;; | ||
?) | ||
echo "Invalid option: -${arg}" | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
## Setup default config | ||
(DIR="$(dirname "$0")"; echo $DIR; cd $DIR; cp ../../../config/opensearch_dashboards.yml "$OUTPUT/config/") |
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,40 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# The OpenSearch Contributors require contributions made to | ||
# this file be licensed under the Apache-2.0 license or a | ||
# compatible open source license. | ||
|
||
set -ex | ||
|
||
function usage() { | ||
echo "Usage: $0 [args]" | ||
echo "" | ||
echo "Arguments:" | ||
echo -e "-a ARTIFACTS\t[Required] Location of build artifacts." | ||
echo -e "-o OUTPUT\t[Required] Output path." | ||
echo -e "-h help" | ||
} | ||
|
||
while getopts ":h:a:o:" arg; do | ||
case $arg in | ||
o) | ||
OUTPUT=$OPTARG | ||
;; | ||
a) | ||
ARTIFACTS=$OPTARG | ||
;; | ||
h) | ||
usage | ||
exit 1 | ||
;; | ||
?) | ||
echo "Invalid option: -${arg}" | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
## Copy the tar installation script into the bundle | ||
(DIR="$(dirname "$0")"; echo $DIR; cd $DIR; cp ../../../scripts/legacy/tar/linux/opensearch-tar-install.sh "$OUTPUT/") |
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
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
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