Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
6189e4d2
Verified
Commit
6189e4d2
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Fixed error in path
parent
d2277782
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!231
CI: Remove build for log-service
,
!228
Better error message handling in the frontend
,
!223
Release of version 1.4.0
,
!192
Fixed the index generation on startup
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dbrepo-search-db/Dockerfile
+2
-2
2 additions, 2 deletions
dbrepo-search-db/Dockerfile
dbrepo-search-db/create-indices.sh
+1
-1
1 addition, 1 deletion
dbrepo-search-db/create-indices.sh
with
3 additions
and
3 deletions
dbrepo-search-db/Dockerfile
+
2
−
2
View file @
6189e4d2
...
@@ -2,7 +2,7 @@ FROM opensearchproject/opensearch:2.8.0 as runtime
...
@@ -2,7 +2,7 @@ FROM opensearchproject/opensearch:2.8.0 as runtime
USER
root
USER
root
RUN
yum
update
-y
&&
yum
install
-y
jq
RUN
yum
install
-y
jq
USER
opensearch
USER
opensearch
...
@@ -10,7 +10,7 @@ WORKDIR /app
...
@@ -10,7 +10,7 @@ WORKDIR /app
COPY
./limits.conf /etc/security/limits.conf
COPY
./limits.conf /etc/security/limits.conf
COPY
./indices/*.json .
/indices
COPY
./indices/*.json .
COPY
./create-indices.sh ./create-indices.sh
COPY
./create-indices.sh ./create-indices.sh
COPY
./docker-entrypoint.sh ./docker-entrypoint.sh
COPY
./docker-entrypoint.sh ./docker-entrypoint.sh
...
...
This diff is collapsed.
Click to expand it.
dbrepo-search-db/create-indices.sh
+
1
−
1
View file @
6189e4d2
...
@@ -6,7 +6,7 @@ do
...
@@ -6,7 +6,7 @@ do
done
done
echo
"[create-indices.sh] OpenSearch ready"
echo
"[create-indices.sh] OpenSearch ready"
for
index
in
"user"
"view"
"database"
"identifier"
"concept"
"column"
"table"
"unit"
;
do
for
index
in
"user"
"view"
"database"
"identifier"
"concept"
"column"
"table"
"unit"
;
do
RES
=
$(
curl
-sSL
-X
PUT
"127.0.0.1:9200/
$index
"
-H
"Content-Type: application/json"
--data
"@
indices/
$index
.json"
)
RES
=
$(
curl
-sSL
-X
PUT
"127.0.0.1:9200/
$index
"
-H
"Content-Type: application/json"
--data
"@
$index
.json"
)
ACK
=
$(
echo
"
$RES
"
| jq .acknowledged
)
ACK
=
$(
echo
"
$RES
"
| jq .acknowledged
)
if
[
$ACK
]
;
then
if
[
$ACK
]
;
then
echo
"[create-indices.sh] Created
$index
index"
echo
"[create-indices.sh] Created
$index
index"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment