Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Init Solr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
702
Provoz
gss
Init Solr
Commits
96db64f0
Commit
96db64f0
authored
9 months ago
by
Jan Krčmář
Committed by
honza801@ADMIN.META
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile +pkg patch curl bash jq
fix curl auth
parent
45bd4792
No related branches found
No related tags found
No related merge requests found
Pipeline
#11250
passed
9 months ago
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
init-solr.yaml
+1
-1
1 addition, 1 deletion
init-solr.yaml
toolbox/init.sh
+2
-1
2 additions, 1 deletion
toolbox/init.sh
with
4 additions
and
2 deletions
Dockerfile
+
1
−
0
View file @
96db64f0
...
@@ -6,6 +6,7 @@ RUN mkdir /opt/toolbox
...
@@ -6,6 +6,7 @@ RUN mkdir /opt/toolbox
COPY
toolbox/ /opt/toolbox/
COPY
toolbox/ /opt/toolbox/
# unzip toolbox
# unzip toolbox
RUN
apk add patch curl bash jq
RUN
cd
/opt/toolbox
&&
unzip
-o
cdh-toolbox-
${
VERSION
}
.zip
&&
patch
-p0
< solr-config.patch
RUN
cd
/opt/toolbox
&&
unzip
-o
cdh-toolbox-
${
VERSION
}
.zip
&&
patch
-p0
< solr-config.patch
CMD
/opt/toolbox/init.sh
CMD
/opt/toolbox/init.sh
This diff is collapsed.
Click to expand it.
init-solr.yaml
+
1
−
1
View file @
96db64f0
...
@@ -6,7 +6,7 @@ spec:
...
@@ -6,7 +6,7 @@ spec:
template
:
template
:
spec
:
spec
:
containers
:
containers
:
-
image
:
gitlab-registry.cesnet.cz/702/provoz/gss/init-solr:1.4.3-cesnet
0
-
image
:
gitlab-registry.cesnet.cz/702/provoz/gss/init-solr:1.4.3-cesnet
1
name
:
init-solr
name
:
init-solr
envFrom
:
envFrom
:
-
secretRef
:
-
secretRef
:
...
...
This diff is collapsed.
Click to expand it.
toolbox/init.sh
+
2
−
1
View file @
96db64f0
...
@@ -8,7 +8,8 @@ export SOLR_PASSWORD="${SOLR_PASSWORD}"
...
@@ -8,7 +8,8 @@ export SOLR_PASSWORD="${SOLR_PASSWORD}"
# Create solr collection
# Create solr collection
cd
/opt/toolbox/solr
cd
/opt/toolbox/solr
echo
"Creating Solr collection..."
echo
"Creating Solr collection..."
curl
"http://
$SOLR_HOST
:8983/solr/admin/collections?action=CREATE&name=
${
SOLR_CORE
}
&numShards=1&replicationFactor=3&collection.configName=_default"
[
-n
"
$SOLR_USER
"
-a
-n
"
$SOLR_PASSWORD
"
]
&&
CURL_OPTS
=
"-u
$SOLR_USER
:
$SOLR_PASSWORD
"
curl
$CURL_OPTS
"
$SOLR_URL
/admin/collections?action=CREATE&name=
${
SOLR_CORE
}
&numShards=1&replicationFactor=3&collection.configName=_default"
echo
"Solr collection
${
SOLR_CORE
}
created."
echo
"Solr collection
${
SOLR_CORE
}
created."
# Update solr schema
# Update solr schema
...
...
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