Skip to content

Commit

Permalink
Merge pull request #13310 from rawlingsj/opensearch-dashboards_config
Browse files Browse the repository at this point in the history
opensearch-dashboards-2: include config and entrypoint script from op…
  • Loading branch information
rawlingsj authored Feb 20, 2024
2 parents 2ba7141 + 9b69a02 commit a26e09b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions opensearch-dashboards-2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: opensearch-dashboards-2
version: 2.11.1
epoch: 1
epoch: 2
description: Open source visualization dashboards for OpenSearch
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -75,14 +75,26 @@ pipeline:
mkdir -p "${{targets.destdir}}/usr/share"
cp -r build/opensearch-dashboards-${{package.version}}-linux-* "${{targets.destdir}}/usr/share/opensearch-dashboards"
# Remove the default config file, as it will be provided by the config package which comes from a different repository.
rm -r ${{targets.destdir}}/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
- uses: strip

subpackages:
- name: ${{package.name}}-compat
- name: ${{package.name}}-config
description: Compatibility package to place Docker startup scripts.
pipeline:
- uses: git-checkout
with:
repository: https://github.com/opensearch-project/opensearch-build
tag: ${{package.version}}
destination: opensearch-build
expected-commit: dce080075c219010371c02e699e816dd4df7758f # will need to be manually updated when opensearch dashboard auto update happens
- runs: |
install -Dm755 src/dev/build/tasks/os_packages/docker_generator/resources/bin/opensearch-dashboards-docker "${{targets.contextdir}}/usr/local/bin/opensearch-dashboards-docker"
install -Dm755 opensearch-build/docker/release/config/opensearch-dashboards/opensearch-dashboards-docker-entrypoint-2.x.sh ${{targets.contextdir}}/usr/share/opensearch-dashboards/opensearch-dashboards-docker-entrypoint.sh
install -Dm666 opensearch-build/config/opensearch_dashboards-2.x.yml ${{targets.contextdir}}/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
install -Dm666 opensearch-build/docker/release/config/opensearch-dashboards/opensearch.example.org.key ${{targets.contextdir}}/usr/share/opensearch-dashboards/config/opensearch.example.org.key
install -Dm666 opensearch-build/docker/release/config/opensearch-dashboards/opensearch.example.org.cert ${{targets.contextdir}}/usr/share/opensearch-dashboards/config/opensearch.example.org.cert
- range: plugins
name: ${{package.name}}-${{range.key}}
Expand Down Expand Up @@ -122,6 +134,7 @@ test:
contents:
packages:
- busybox
- ${{package.name}}-config
environment:
OSD_NODE_HOME: /usr
pipeline:
Expand Down

0 comments on commit a26e09b

Please sign in to comment.