Skip to content

Commit

Permalink
Feature opensearch (#204)
Browse files Browse the repository at this point in the history
* Opensearch

---------

Signed-off-by: Andrei Stepanov <[email protected]>
Co-authored-by: Chris Kelley <[email protected]>
  • Loading branch information
Andrei-Stepanov and ckelleyRH authored Apr 24, 2024
1 parent f70cf59 commit 628ce0d
Show file tree
Hide file tree
Showing 28 changed files with 7,934 additions and 15,394 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2
"tabWidth": 4
}
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 4
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Based on https://github.com/sclorg/s2i-nodejs-container
FROM quay.io/sclorg/nodejs-18-c8s
FROM registry.access.redhat.com/ubi8/nodejs-18

# Additional packages to install before the build.
ARG ADDPKGS=
Expand All @@ -11,7 +11,7 @@ ARG GITCOMMIT=
ENV CIBOARD_SERVER_GIT_COMMIT $GITCOMMIT

USER root
RUN dnf install --assumeyes krb5-workstation postgresql $ADDPKGS && \
RUN dnf install --assumeyes krb5-workstation libpq $ADDPKGS && \
dnf clean all --assumeyes

COPY linux-krb5.conf /etc/krb5.conf
Expand Down
41 changes: 11 additions & 30 deletions assets/config-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,10 @@ datagrepper:
sst:
url: 'https://sst.osci.redhat.com'
results: 'results/sstlist.json'
db:
# http://mongodb.github.io/node-mongodb-native/3.5/api/MongoClient.html
url: ~
limit_default: 20
db_name: 'ci-messages'
collections:
metadata:
name: 'metadata'
indexes: []
artifacts:
name: 'artifacts'
components:
name: 'components_mapping'
collection_name: 'artifacts'
collection_name_components: 'components_mapping'
options:
tlsCAFile: ~
opensearch:
client: {}
indexes_prefix: ~
size: 10
koji_fp:
host: 'koji.fedoraproject.org'
port: 443
Expand Down Expand Up @@ -122,19 +109,13 @@ env_to_config_map:
sst:
url: SRV_SST_URL
results: SRV_SST_RESULTS
db:
url: SRV_DB_URL
limit_default: SRV_DB_LIMIT_DEFAULT
db_name: SRV_DB_DB_NAME
collections:
artifacts:
name: SRV_DB_COLLECTION_NAME
components:
name: SRV_DB_COLLECTION_NAME_COMPONENTS
metadata:
name: SRV_DB_COLLECTION_NAME_METADATA
options:
tlsCAFile: SRV_DB_OPTIONS_TLSCAFILE
opensearch:
client:
node: SRV_OPENSEARCH_CLIENT_NODE
ssl:
ca: SRV_OPENSEARCH_CLIENT_SSL_CA
indexes_prefix: SRV_OPENSEARCH_INDEXES_PREFIX
size: SRV_OPENSEARCH_SIZE
koji_fp:
host: SRV_KOJI_FP_HOST
port: SRV_KOJI_FP_PORT
Expand Down
Loading

0 comments on commit 628ce0d

Please sign in to comment.