Skip to content
Snippets Groups Projects
Commit 96db64f0 authored by Jan Krčmář's avatar Jan Krčmář Committed by honza801@ADMIN.META
Browse files

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
...@@ -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
...@@ -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-cesnet0 - image: gitlab-registry.cesnet.cz/702/provoz/gss/init-solr:1.4.3-cesnet1
name: init-solr name: init-solr
envFrom: envFrom:
- secretRef: - secretRef:
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment