-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Add Opensearch image #1215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+805
−3
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3431f6d
feat(opensearch): Add OpenSearch image
siegfriedweber 212a573
feat(opensearch): Change JDK to version 17
siegfriedweber be90d10
feat(jdk-base): Create a jdk-base image for OpenSearch
siegfriedweber 9969c13
feat(opensearch): Upgrade to version 2.19.0
siegfriedweber bc4abee
feat(opensearch): Upgrade to version 2.19.1 and install the plugin re…
siegfriedweber f3216f5
Merge branch 'main' into feat/opensearch
siegfriedweber 4ad9e03
Merge remote-tracking branch 'origin/main' into feat/opensearch
labrenbe 710e0c2
Merge remote-tracking branch 'origin/main' into feat/opensearch
labrenbe 19b06dc
wip: build from source
labrenbe 9ee4c40
feat: SBOMs for OpenSearch and opensearch-security-plugin (#1211)
dervoeti aff059e
fix file structure in image and make multi-arch compatible
labrenbe 2f15213
install performance analyzer plugin
labrenbe d04f5fd
remove legacy apply-patches file
labrenbe 61d50cf
add changelog entry
labrenbe ceb2125
Merge remote-tracking branch 'origin/main' into feat/opensearch
labrenbe 2f9d0ab
Merge branch 'main' into feat/opensearch
labrenbe 8248558
Merge branch 'main' into feat/opensearch
labrenbe 841b3a0
build plugins from source and stop building snapshots
labrenbe 402698b
replace performance analyzer with telemetry-otel & address PR feedback
labrenbe 8c5a7ea
Merge remote-tracking branch 'origin/main' into feat/opensearch
labrenbe 9162b57
simplify build process
labrenbe 07d838e
address feedback in PR
labrenbe c3f9d89
fix copypaste errors
labrenbe e5e8a2c
add stackable-devel to build dependencies
labrenbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,79 @@ | ||
--- | ||
name: Update OpenSearch | ||
about: >- | ||
This template contains instructions specific to updating this product and/or | ||
container image(s). | ||
title: >- | ||
chore(opensearch): Update container images ahead of Stackable Release YY.M.X | ||
labels: [] | ||
# Currently, projects cannot be assigned via front-matter. | ||
projects: ['stackabletech/10'] | ||
assignees: '' | ||
--- | ||
|
||
Part of #xxx. | ||
|
||
<!-- | ||
This gives hints to the person doing the work. | ||
Add/Change/Remove anything that isn't applicable anymore | ||
--> | ||
- Add: `x.x.x` | ||
- Remove: `y.y.y` | ||
|
||
> [!TIP] | ||
> Please add the `scheduled-for/20XX-XX` label, and add to the [Stackable Engineering][1] project. | ||
> | ||
> [1]: https://github.com/orgs/stackabletech/projects/10 | ||
|
||
## Update tasks | ||
|
||
- [ ] Update `versions.py` to reflect the agreed upon versions in the spreadsheet (including the removal of old versions). | ||
- [ ] Update `versions.py` to the latest supported version of JVM (base and devel). | ||
- [ ] Update other dependencies if applicable (eg: security-plugin, etc). | ||
- [ ] Check other operators (getting_started / kuttl / supported-versions) for usage of the versions. Add the PR(s) to the list below. | ||
- [ ] Update the version in demos. Add the PR(s) to the list below. | ||
|
||
## Related Pull Requests | ||
|
||
> [!TIP] | ||
> Delete any items that do not apply so that all applicable items can be checked. | ||
> For example, if you add release notes to the documentation repository, you do not need the latter two criteria. | ||
|
||
- _Link to the docker-images PR (product update)_ | ||
- _Link to the operator PR (getting_started / kuttl / supported-versions)_ | ||
- _Link to any other operator PRs (getting_started / kuttl)_ | ||
- _Link to demo PR (raise against the `main` branch)_ | ||
- _Link to the Release Notes PR in the documentation repo (if not a comment below)_ | ||
|
||
## Acceptance | ||
|
||
> [!TIP] | ||
> This list should be completed by the assignee(s), once respective PRs have been merged. Once all items have been | ||
> checked, the issue can be moved into _Development: Done_. | ||
|
||
- [ ] Can build image (either locally, or in CI) | ||
- [ ] Kuttl smoke tests passes (either locally, or in CI) | ||
- [ ] Release notes added to documentation and linked as a PR above | ||
- [ ] Release notes written in a comment below | ||
- [ ] Applicable `release-note` label added to this issue | ||
|
||
<details> | ||
<summary>Testing instructions</summary> | ||
|
||
```shell | ||
# See the latest version at https://pypi.org/project/image-tools-stackabletech/ | ||
pip install image-tools-stackabletech==0.0.16 | ||
|
||
bake --product opensearch=x.y.z # where x.y.z is the new version added in this PR | ||
|
||
kind load docker-image oci.stackable.tech/sdp/opensearch:x.y.z-stackable0.0.0-dev | ||
|
||
# Change directory into the opensearch-operator repository and update the | ||
# product version in tests/test-definition.yaml | ||
./scripts/run-tests --test-suite smoke-latest # or similar | ||
``` | ||
|
||
</details> | ||
|
||
_Please consider updating this template if these instructions are wrong, or | ||
could be made clearer._ |
This file contains hidden or 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,36 @@ | ||
--- | ||
name: Build OpenSearch | ||
run-name: | | ||
Build OpenSearch (attempt #${{ github.run_attempt }}) | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 2/2 * *' # https://crontab.guru/#0_0_2/2_*_* | ||
push: | ||
branches: [main] | ||
tags: ['*'] | ||
paths: | ||
# To check dependencies, run this ( you will need to consider transitive dependencies) | ||
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]' | ||
- opensearch/** | ||
- vector/** | ||
- stackable-base/** | ||
- stackable-devel/** | ||
- jdk-base/** | ||
- java-devel/** | ||
- .github/actions/** | ||
- .github/workflows/build_opensearch.yaml | ||
- .github/workflows/reusable_build_image.yaml | ||
|
||
jobs: | ||
build_image: | ||
name: Reusable Workflow | ||
uses: ./.github/workflows/reusable_build_image.yaml | ||
secrets: | ||
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} | ||
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }} | ||
with: | ||
product-name: opensearch | ||
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }} | ||
registry-namespace: sdp |
This file contains hidden or 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 |
---|---|---|
|
@@ -66,6 +66,7 @@ jobs: | |
- nifi | ||
- omid | ||
- opa | ||
- opensearch | ||
- spark-k8s | ||
- superset | ||
- trino | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"krb5", | ||
"nifi", | ||
"opa", | ||
"opensearch", | ||
"omid", | ||
"spark-k8s", | ||
"superset", | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -33,6 +33,7 @@ PRODUCT_CODE_NAMES=( | |
hive | ||
kafka | ||
nifi | ||
opensearch | ||
spark-k8s | ||
superset | ||
trino | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,59 @@ | ||
# syntax=docker/dockerfile:1.16.0@sha256:e2dd261f92e4b763d789984f6eab84be66ab4f5f08052316d8eb8f173593acf7 | ||
# check=error=true | ||
|
||
# | ||
# Provides the common Java Development Kit for SDP products | ||
# | ||
FROM stackable/image/vector | ||
|
||
ARG PRODUCT | ||
ARG RELEASE="1" | ||
|
||
LABEL name="Stackable image for OpenJDK" \ | ||
maintainer="[email protected]" \ | ||
vendor="Stackable GmbH" \ | ||
version="${PRODUCT}" \ | ||
release="${RELEASE}" \ | ||
summary="The Stackable OpenJDK base image." \ | ||
description="This image is the base image for all Stackable Java product images which require a JDK." | ||
|
||
# See: https://adoptium.net/en-gb/installation/linux/#_centosrhelfedora_instructions | ||
RUN cat <<EOF > /etc/yum.repos.d/adoptium.repo | ||
[Adoptium] | ||
name=Adoptium | ||
# The adoptium mirror times-out often, so we have created a pull-through cache | ||
# baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/\$releasever/\$basearch | ||
baseurl=https://build-repo.stackable.tech/repository/Adoptium/\$releasever/\$basearch | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public | ||
EOF | ||
|
||
RUN microdnf update && \ | ||
microdnf install \ | ||
# Needed to run Java programs | ||
"temurin-${PRODUCT}-jdk" \ | ||
# Needed, because otherwise e.g. Zookeeper fails with | ||
# Caused by: java.io.FileNotFoundException: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el8.x86_64/lib/tzdb.dat (No such file or directory) | ||
tzdata-java \ | ||
# Most of the Java tools needs at least "klist" and "kinit" for Kerberos integration | ||
krb5-workstation \ | ||
--nodocs && \ | ||
microdnf clean all | ||
|
||
COPY java-base/licenses /licenses | ||
|
||
ENV JAVA_HOME="/usr/lib/jvm/temurin-${PRODUCT}-jdk" | ||
|
||
# This image doesn't include the development packages for Java. | ||
# For images that need the devel package (ex. Spark) use this env variable to | ||
# install the proper javac version. | ||
# | ||
# microdnf install java-${JAVA_VERSION}-openjdk-devel | ||
# | ||
ENV JAVA_VERSION=$PRODUCT | ||
|
||
# Mitigation for CVE-2021-44228 (Log4Shell) | ||
# This variable is supported as of Log4j version 2.10 and | ||
# disables the vulnerable feature | ||
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.