-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julian Liebig
authored
Feb 12, 2024
1 parent
fe940a4
commit 6b951aa
Showing
11 changed files
with
299 additions
and
0 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
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,8 @@ | ||
# THIS IS AUTO-GENERATED by builder/build.sh. DO NOT EDIT. | ||
FROM opensearchproject/opensearch:1 | ||
|
||
USER root | ||
|
||
RUN yum install -y util-linux | ||
|
||
USER opensearch |
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,56 @@ | ||
# Supported tags and respective `Dockerfile` links | ||
- [`latest`, (*latest/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/latest/Dockerfile) | ||
- [`2`, (*2/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/2/Dockerfile) | ||
- [`1` (*1/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/1/Dockerfile) | ||
|
||
# Quick reference | ||
|
||
- **Where to get help**: | ||
[the Riptide Docker Images Github Repository](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Where to file issues**: | ||
[https://github.com/theCapypara/riptide-docker-images/issues](https://github.com/theCapypara/riptide-docker-images/issues) | ||
|
||
- **Maintained by**: | ||
[the Riptide Community](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Source of this description**: | ||
[README in riptide-docker-images repo](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch) ([history](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch)) | ||
|
||
# What is OpenSearch? | ||
|
||
OpenSearch images based on the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
|
||
These images work like their official counterpart, but: | ||
|
||
- They include `util-linux`, which allows Riptide to utilize the current user instead of the predefined `opensearch` user | ||
|
||
# How to use this image. | ||
|
||
See the description of the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
The directory used for app data is `/usr/share/opensearch/data`! | ||
The configuration file used for this app is `/usr/share/opensearch/config/opensearch.yml`! | ||
|
||
This image is meant to be used with [Riptide](https://github.com/theCapypara/riptide-cli). | ||
Using it without Riptide is probably possible, but not supported. | ||
|
||
## Basic Usage with Riptide | ||
|
||
For a service using this image, see: [OpenSearch Riptide Service](https://github.com/theCapypara/riptide-repo/tree/master/service/opensearch) | ||
|
||
The image is meant to be used only for services. | ||
|
||
This image supports ``run_as_current_user: true`` for services (this is the default). | ||
|
||
## Basic Usage with Docker Run | ||
|
||
``` | ||
docker run \ | ||
-it \ | ||
-d \ | ||
-p 9200:9200 \ | ||
-p 9600:9600 \ | ||
-e "discovery.type=single-node" \ | ||
-v ./data:/usr/share/opensearch/data \ | ||
riptidepy/opensearch | ||
``` |
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,8 @@ | ||
# THIS IS AUTO-GENERATED by builder/build.sh. DO NOT EDIT. | ||
FROM opensearchproject/opensearch:2 | ||
|
||
USER root | ||
|
||
RUN yum install -y util-linux | ||
|
||
USER opensearch |
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,56 @@ | ||
# Supported tags and respective `Dockerfile` links | ||
- [`latest`, (*latest/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/latest/Dockerfile) | ||
- [`2`, (*2/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/2/Dockerfile) | ||
- [`1` (*1/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/1/Dockerfile) | ||
|
||
# Quick reference | ||
|
||
- **Where to get help**: | ||
[the Riptide Docker Images Github Repository](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Where to file issues**: | ||
[https://github.com/theCapypara/riptide-docker-images/issues](https://github.com/theCapypara/riptide-docker-images/issues) | ||
|
||
- **Maintained by**: | ||
[the Riptide Community](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Source of this description**: | ||
[README in riptide-docker-images repo](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch) ([history](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch)) | ||
|
||
# What is OpenSearch? | ||
|
||
OpenSearch images based on the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
|
||
These images work like their official counterpart, but: | ||
|
||
- They include `util-linux`, which allows Riptide to utilize the current user instead of the predefined `opensearch` user | ||
|
||
# How to use this image. | ||
|
||
See the description of the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
The directory used for app data is `/usr/share/opensearch/data`! | ||
The configuration file used for this app is `/usr/share/opensearch/config/opensearch.yml`! | ||
|
||
This image is meant to be used with [Riptide](https://github.com/theCapypara/riptide-cli). | ||
Using it without Riptide is probably possible, but not supported. | ||
|
||
## Basic Usage with Riptide | ||
|
||
For a service using this image, see: [OpenSearch Riptide Service](https://github.com/theCapypara/riptide-repo/tree/master/service/opensearch) | ||
|
||
The image is meant to be used only for services. | ||
|
||
This image supports ``run_as_current_user: true`` for services (this is the default). | ||
|
||
## Basic Usage with Docker Run | ||
|
||
``` | ||
docker run \ | ||
-it \ | ||
-d \ | ||
-p 9200:9200 \ | ||
-p 9600:9600 \ | ||
-e "discovery.type=single-node" \ | ||
-v ./data:/usr/share/opensearch/data \ | ||
riptidepy/opensearch | ||
``` |
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,56 @@ | ||
# Supported tags and respective `Dockerfile` links | ||
- [`latest`, (*latest/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/latest/Dockerfile) | ||
- [`2`, (*2/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/2/Dockerfile) | ||
- [`1` (*1/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/1/Dockerfile) | ||
|
||
# Quick reference | ||
|
||
- **Where to get help**: | ||
[the Riptide Docker Images Github Repository](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Where to file issues**: | ||
[https://github.com/theCapypara/riptide-docker-images/issues](https://github.com/theCapypara/riptide-docker-images/issues) | ||
|
||
- **Maintained by**: | ||
[the Riptide Community](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Source of this description**: | ||
[README in riptide-docker-images repo](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch) ([history](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch)) | ||
|
||
# What is OpenSearch? | ||
|
||
OpenSearch images based on the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
|
||
These images work like their official counterpart, but: | ||
|
||
- They include `util-linux`, which allows Riptide to utilize the current user instead of the predefined `opensearch` user | ||
|
||
# How to use this image. | ||
|
||
See the description of the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
The directory used for app data is `/usr/share/opensearch/data`! | ||
The configuration file used for this app is `/usr/share/opensearch/config/opensearch.yml`! | ||
|
||
This image is meant to be used with [Riptide](https://github.com/theCapypara/riptide-cli). | ||
Using it without Riptide is probably possible, but not supported. | ||
|
||
## Basic Usage with Riptide | ||
|
||
For a service using this image, see: [OpenSearch Riptide Service](https://github.com/theCapypara/riptide-repo/tree/master/service/opensearch) | ||
|
||
The image is meant to be used only for services. | ||
|
||
This image supports ``run_as_current_user: true`` for services (this is the default). | ||
|
||
## Basic Usage with Docker Run | ||
|
||
``` | ||
docker run \ | ||
-it \ | ||
-d \ | ||
-p 9200:9200 \ | ||
-p 9600:9600 \ | ||
-e "discovery.type=single-node" \ | ||
-v ./data:/usr/share/opensearch/data \ | ||
riptidepy/opensearch | ||
``` |
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,9 @@ | ||
# Dockerfile for all builds. The FROM part is switched out. Built by build.sh. See README. First three lines are stripped. | ||
FROM opensearchproject/opensearch | ||
################################################################################## | ||
|
||
USER root | ||
|
||
RUN yum install -y util-linux | ||
|
||
USER opensearch |
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,8 @@ | ||
opensearch builder | ||
=========== | ||
|
||
Build script to update the individual images. | ||
|
||
Creates the Dockerfile's in the other directories based on their name. All steps | ||
in this directories Dockerfile will be added to those Dockerfiles, only | ||
the FROM part is modified. |
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,25 @@ | ||
#!/bin/bash | ||
# Builder script, see README. Run from ..! | ||
# This is not run by CI. Run manually and commit the resulting files. | ||
|
||
for goal in */; do | ||
goal=${goal%*/} # Remove trailing slash | ||
IFS='/' read -r -a parts <<< "$goal" | ||
|
||
version="${parts[0]}" | ||
|
||
if [[ "builder" == "$version" ]] | ||
then | ||
continue | ||
fi | ||
echo "# THIS IS AUTO-GENERATED by builder/build.sh. DO NOT EDIT." > "$version/Dockerfile" | ||
|
||
echo "FROM opensearchproject/opensearch:$version" >> "$version/Dockerfile" | ||
|
||
# Read base Dockefile, first three lines are skipped. | ||
tail -n +4 builder/Dockerfile >> "$version/Dockerfile" | ||
|
||
cp "README.md" "$version/" | ||
echo "$version/" | ||
|
||
done |
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,8 @@ | ||
# THIS IS AUTO-GENERATED by builder/build.sh. DO NOT EDIT. | ||
FROM opensearchproject/opensearch:latest | ||
|
||
USER root | ||
|
||
RUN yum install -y util-linux | ||
|
||
USER opensearch |
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,56 @@ | ||
# Supported tags and respective `Dockerfile` links | ||
- [`latest`, (*latest/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/latest/Dockerfile) | ||
- [`2`, (*2/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/2/Dockerfile) | ||
- [`1` (*1/Dockerfile*)](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch/1/Dockerfile) | ||
|
||
# Quick reference | ||
|
||
- **Where to get help**: | ||
[the Riptide Docker Images Github Repository](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Where to file issues**: | ||
[https://github.com/theCapypara/riptide-docker-images/issues](https://github.com/theCapypara/riptide-docker-images/issues) | ||
|
||
- **Maintained by**: | ||
[the Riptide Community](https://github.com/theCapypara/riptide-docker-images) | ||
|
||
- **Source of this description**: | ||
[README in riptide-docker-images repo](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch) ([history](https://github.com/theCapypara/riptide-docker-images/tree/master/opensearch)) | ||
|
||
# What is OpenSearch? | ||
|
||
OpenSearch images based on the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
|
||
These images work like their official counterpart, but: | ||
|
||
- They include `util-linux`, which allows Riptide to utilize the current user instead of the predefined `opensearch` user | ||
|
||
# How to use this image. | ||
|
||
See the description of the [official OpenSearch images](https://hub.docker.com/r/opensearchproject/opensearch). | ||
The directory used for app data is `/usr/share/opensearch/data`! | ||
The configuration file used for this app is `/usr/share/opensearch/config/opensearch.yml`! | ||
|
||
This image is meant to be used with [Riptide](https://github.com/theCapypara/riptide-cli). | ||
Using it without Riptide is probably possible, but not supported. | ||
|
||
## Basic Usage with Riptide | ||
|
||
For a service using this image, see: [OpenSearch Riptide Service](https://github.com/theCapypara/riptide-repo/tree/master/service/opensearch) | ||
|
||
The image is meant to be used only for services. | ||
|
||
This image supports ``run_as_current_user: true`` for services (this is the default). | ||
|
||
## Basic Usage with Docker Run | ||
|
||
``` | ||
docker run \ | ||
-it \ | ||
-d \ | ||
-p 9200:9200 \ | ||
-p 9600:9600 \ | ||
-e "discovery.type=single-node" \ | ||
-v ./data:/usr/share/opensearch/data \ | ||
riptidepy/opensearch | ||
``` |