Skip to content

Commit

Permalink
Set file limit for solr user on boot (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel authored Jan 22, 2021
1 parent 13b11a3 commit 1fde4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ops/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
if [ ! -z "$DYNATRACE_TOKEN" ];then
curl -Ls -H "Authorization: Api-Token ${DYNATRACE_TOKEN}" 'https://nhd42358.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default' > /tmp/installer.sh

/bin/sh /tmp/installer.sh --set-app-log-content-access=true --set-infra-only=true --set-host-group=DC --set-host-name=${CLUSTER_NAME}-solr NON_ROOT_MODE=0 2>&1 &
/bin/sh /tmp/installer.sh --set-app-log-content-access=true --set-infra-only=true --set-host-group=DC --set-host-name=${CLUSTER_NAME}-solr NON_ROOT_MODE=0 2>&1 &
fi
if [ ! -z "${SOLR_CORE}" ];then
cp -rn /opt/config/ /var/solr/data/${SOLR_CORE}/conf
touch /var/solr/data/${SOLR_CORE}/core.properties
chown -R solr: /var/solr/data
fi
su solr -c 'docker-entrypoint.sh solr-foreground'

su solr -c 'ulimit -n 65000 && docker-entrypoint.sh solr-foreground'

0 comments on commit 1fde4e3

Please sign in to comment.