diff --git a/containers/solr-9.6.1/Dockerfile b/containers/solr-9.6.1/Dockerfile new file mode 100644 index 0000000..46b2165 --- /dev/null +++ b/containers/solr-9.6.1/Dockerfile @@ -0,0 +1,23 @@ +################################################################################ +# Dockerfile de construcao do container Solr utilizado pelo SEI +# +# Container preparado e configurado para uso em desenvolvimento e testes +################################################################################ + +ARG IMAGEM_BASE=processoeletronico/base-rocky93:latest + +FROM ${IMAGEM_BASE} + +ENV TERM xterm + +ADD assets/ \ + https://archive.apache.org/dist/solr/solr/9.6.1/solr-9.6.1.tgz \ + https://github.com/spbgovbr/sei-docker-binarios/raw/main/pacoteslinux/msttcore-fonts-2.0-3.noarch.rpm \ + /tmp/ + +RUN ls -lh /tmp && sh /tmp/install.sh && rm -rf /tmp/* + +USER solr + +EXPOSE 8983 +CMD ["/command.sh"] diff --git a/containers/solr-9.6.1/assets/command.sh b/containers/solr-9.6.1/assets/command.sh new file mode 100755 index 0000000..5e4f4b7 --- /dev/null +++ b/containers/solr-9.6.1/assets/command.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +/opt/solr/bin/solr -p 8983 -f diff --git a/containers/solr-9.6.1/assets/install.sh b/containers/solr-9.6.1/assets/install.sh new file mode 100755 index 0000000..bd3747a --- /dev/null +++ b/containers/solr-9.6.1/assets/install.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -e + +yum -y update && yum -y install lsof wget glibc-locale-source procps bc + +localedef pt_BR -i pt_BR -f ISO-8859-1 + +dnf -y install java-17-openjdk + +# Instalação de pacote de fontes do windows +rpm -Uvh /tmp/msttcore-fonts-2.0-3.noarch.rpm + +# join splited solr +# cat /tmp/solr-9.6.1.tgz.part* > /tmp/solr-9.6.1.tgz + +mv /tmp/solr9.6.1sei/* /tmp/ + +useradd solr + +chmod +x /tmp/sei-solr-9.6.1.sh + +cd /tmp + +/tmp/sei-solr-9.6.1.sh + +echo "" >> /opt/solr/bin/solr.in.sh +echo 'SOLR_OPTS="$SOLR_OPTS -Dsolr.allowPaths=/dados"' >> /opt/solr/bin/solr.in.sh +echo 'SOLR_JETTY_HOST="0.0.0.0"' >> /opt/solr/bin/solr.in.sh + +mv /tmp/command.sh / + +yum clean all +rm -rf /var/cache/yum + +# Configuração de permissões de execução no script de inicialização do container +chmod +x /command.sh diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/log4j.properties b/containers/solr-9.6.1/assets/solr9.6.1sei/log4j.properties new file mode 100755 index 0000000..ebf04a7 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/log4j.properties @@ -0,0 +1,24 @@ +# Logging level +solr.log=logs +log4j.rootLogger=WARN, file, CONSOLE + +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender + +log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n + +#- size rotation with log cleanup. +log4j.appender.file=org.apache.log4j.RollingFileAppender +log4j.appender.file.MaxFileSize=4MB +log4j.appender.file.MaxBackupIndex=9 + +#- File to log to and log format +log4j.appender.file.File=${solr.log}/solr.log +log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout +log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m\n + +log4j.logger.org.apache.zookeeper=WARN +log4j.logger.org.apache.hadoop=WARN + +# set to INFO to enable infostream log messages +log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/security.json b/containers/solr-9.6.1/assets/solr9.6.1sei/security.json new file mode 100755 index 0000000..4c30091 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/security.json @@ -0,0 +1,12 @@ +{ + "authentication":{ + "blockUnknown": true, + "class":"solr.BasicAuthPlugin", + "credentials":{"admin":"etj8dxXw64oqYMn1V3FRkIT81TlGQEcdvhm/Y9OOt90= ofmrnvtF35ksk37rQjLd/i6PxAlqFD/24ySenLSQeLA=","sei":"mmiwzGKuZpDvyzG/B9vnBFnHVbblaDr7kw84alKR15U= x6C+p2Oscp7MDXHuImMw7rfy5nvJ32H+Dc+6EL7145Y="} + }, + "authorization":{ + "class":"solr.RuleBasedAuthorizationPlugin", + "permissions":[{"name":"read", "role":"*"},{"name":"update", "role":"*"},{"name":"all", "role":"admin"}], + "user-role":{"admin":"admin","sei": "basic"} + } +} diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/conf/schema.xml b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/conf/schema.xml new file mode 100755 index 0000000..db7305d --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/conf/schema.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/conf/solrconfig.xml b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/conf/solrconfig.xml new file mode 100755 index 0000000..d38f8ed --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/conf/solrconfig.xml @@ -0,0 +1,1423 @@ + + + + + + + + + 9.6.1 + + + + + + + + + + + + + + + + + + + + + ${solr.data.dir:} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${solr.lock.type:native} + + + + + + + + + + + + + + + + + + + + + + + ${solr.ulog.dir:} + + + + + 60000 + true + + + + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + true + + + + + + 20 + + + 200 + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + explicit + 10 + + text + + xml + + + + + + + + + + + + + + explicit + json + true + + + + + + + + + + + + add-unknown-fields-to-the-schema + + + + + + + + + + + + + + + true + ignored_ + + + true + links + ignored_ + + + + + + + + + text_general + + + + + + default + text + solr.DirectSolrSpellChecker + + internal + + 0.5 + + 2 + + 1 + + 5 + + 4 + + 0.01 + + + + + + wordbreak + solr.WordBreakSolrSpellChecker + name + true + true + 10 + + + + + + + + + + + + + + + + + default + wordbreak + on + true + 10 + 5 + 5 + true + true + 10 + 5 + + + spellcheck + + + + + + + + + + true + + + tvComponent + + + + + + + + + + + + true + false + + + terms + + + + + + + + string + elevate.xml + + + + + + explicit + + + elevator + + + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + + + + + + + + + + + + + + + ,, + ,, + ,, + ,, + ,]]> + ]]> + + + + + + 10 + .,!? + + + + + + + WORD + + + pt + BR + + + + + + + + + + + + + + [^\w-\.] + _ + + + + + + + yyyy-MM-dd'T'HH:mm:ss.SSSZ + yyyy-MM-dd'T'HH:mm:ss,SSSZ + yyyy-MM-dd'T'HH:mm:ss.SSS + yyyy-MM-dd'T'HH:mm:ss,SSS + yyyy-MM-dd'T'HH:mm:ssZ + yyyy-MM-dd'T'HH:mm:ss + yyyy-MM-dd'T'HH:mmZ + yyyy-MM-dd'T'HH:mm + yyyy-MM-dd HH:mm:ss.SSSZ + yyyy-MM-dd HH:mm:ss,SSSZ + yyyy-MM-dd HH:mm:ss.SSS + yyyy-MM-dd HH:mm:ss,SSS + yyyy-MM-dd HH:mm:ssZ + yyyy-MM-dd HH:mm:ss + yyyy-MM-dd HH:mmZ + yyyy-MM-dd HH:mm + yyyy-MM-dd + + + + strings + + java.lang.Boolean + booleans + + + java.util.Date + pdates + + + java.lang.Long + java.lang.Integer + plongs + + + java.lang.Number + pdoubles + + + + + + + + + + + + + + + yyyy-MM-dd'T'HH:mm:ss.SSSZ + yyyy-MM-dd'T'HH:mm:ss,SSSZ + yyyy-MM-dd'T'HH:mm:ss.SSS + yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS + yyyy-MM-dd'T'HH:mm:ss,SSS + yyyy-MM-dd'T'HH:mm:ssZ + yyyy-MM-dd'T'HH:mm:ss + yyyy-MM-dd'T'HH:mmZ + yyyy-MM-dd'T'HH:mm + yyyy-MM-dd HH:mm:ss.SSSZ + yyyy-MM-dd HH:mm:ss,SSSZ + yyyy-MM-dd HH:mm:ss.SSS + yyyy-MM-dd HH:mm:ss,SSS + yyyy-MM-dd HH:mm:ssZ + yyyy-MM-dd HH:mm:ss + yyyy-MM-dd HH:mmZ + yyyy-MM-dd HH:mm + yyyy-MM-dd + + + + + + + + + + + + + + + + + + + + + + + + text/plain; charset=UTF-8 + + + + + ${velocity.template.base.dir:} + + + + + 5 + + + + + + + + + + + + + + + diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/core.properties b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/core.properties new file mode 100755 index 0000000..36f3ca3 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-bases-conhecimento/core.properties @@ -0,0 +1,4 @@ +name=sei-bases-conhecimento +config=solrconfig.xml +schema=schema.xml +dataDir=/dados/sei-bases-conhecimento/conteudo diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/conf/schema.xml b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/conf/schema.xml new file mode 100755 index 0000000..5e306bd --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/conf/schema.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/conf/solrconfig.xml b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/conf/solrconfig.xml new file mode 100755 index 0000000..ca84116 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/conf/solrconfig.xml @@ -0,0 +1,1421 @@ + + + + + + + + + 9.6.1 + + + + + + + + + + + + + + + + + + + ${solr.data.dir:} + + + + + + + + + + + + + + + + + + + + + + 512 + + + + + + + + + + ${solr.lock.type:native} + + + + + + + + + + + + + + + + + + + + + ${solr.ulog.dir:} + + + + + + 300000 + true + + + + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + 20 + + + 200 + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + explicit + 10 + + text + + xml + + + + + + + + + + + + + + explicit + json + true + + + + + + + + + + + + add-unknown-fields-to-the-schema + + + + + + + + + + + + + + + true + ignored_ + + + true + links + ignored_ + + + + + + + + + text_general + + + + + + default + text + solr.DirectSolrSpellChecker + + internal + + 0.5 + + 2 + + 1 + + 5 + + 4 + + 0.01 + + + + + + wordbreak + solr.WordBreakSolrSpellChecker + name + true + true + 10 + + + + + + + + + + + + + + + + + default + wordbreak + on + true + 10 + 5 + 5 + true + true + 10 + 5 + + + spellcheck + + + + + + + + + + true + + + tvComponent + + + + + + + + + + + + true + false + + + terms + + + + + + + + string + elevate.xml + + + + + + explicit + + + elevator + + + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + + + + + + + + + + + + + + + ,, + ,, + ,, + ,, + ,]]> + ]]> + + + + + + 10 + .,!? + + + + + + + WORD + + + pt + BR + + + + + + + + + + + + + + [^\w-\.] + _ + + + + + + + yyyy-MM-dd'T'HH:mm:ss.SSSZ + yyyy-MM-dd'T'HH:mm:ss,SSSZ + yyyy-MM-dd'T'HH:mm:ss.SSS + yyyy-MM-dd'T'HH:mm:ss,SSS + yyyy-MM-dd'T'HH:mm:ssZ + yyyy-MM-dd'T'HH:mm:ss + yyyy-MM-dd'T'HH:mmZ + yyyy-MM-dd'T'HH:mm + yyyy-MM-dd HH:mm:ss.SSSZ + yyyy-MM-dd HH:mm:ss,SSSZ + yyyy-MM-dd HH:mm:ss.SSS + yyyy-MM-dd HH:mm:ss,SSS + yyyy-MM-dd HH:mm:ssZ + yyyy-MM-dd HH:mm:ss + yyyy-MM-dd HH:mmZ + yyyy-MM-dd HH:mm + yyyy-MM-dd + + + + strings + + java.lang.Boolean + booleans + + + java.util.Date + pdates + + + java.lang.Long + java.lang.Integer + plongs + + + java.lang.Number + pdoubles + + + + + + + + + + + + + + yyyy-MM-dd'T'HH:mm:ss.SSSZ + yyyy-MM-dd'T'HH:mm:ss,SSSZ + yyyy-MM-dd'T'HH:mm:ss.SSS + yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS + yyyy-MM-dd'T'HH:mm:ss,SSS + yyyy-MM-dd'T'HH:mm:ssZ + yyyy-MM-dd'T'HH:mm:ss + yyyy-MM-dd'T'HH:mmZ + yyyy-MM-dd'T'HH:mm + yyyy-MM-dd HH:mm:ss.SSSZ + yyyy-MM-dd HH:mm:ss,SSSZ + yyyy-MM-dd HH:mm:ss.SSS + yyyy-MM-dd HH:mm:ss,SSS + yyyy-MM-dd HH:mm:ssZ + yyyy-MM-dd HH:mm:ss + yyyy-MM-dd HH:mmZ + yyyy-MM-dd HH:mm + yyyy-MM-dd + + + + + + + + + + + + + + + + + + + + + + + + text/plain; charset=UTF-8 + + + + + ${velocity.template.base.dir:} + + + + + 5 + + + + + + + + + + + + + + + diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/core.properties b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/core.properties new file mode 100755 index 0000000..90e99a0 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-protocolos/core.properties @@ -0,0 +1,5 @@ +name=sei-protocolos +config=solrconfig.xml +schema=schema.xml +dataDir=/dados/sei-protocolos/conteudo + diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/conf/schema.xml b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/conf/schema.xml new file mode 100755 index 0000000..cc81b64 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/conf/schema.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/conf/solrconfig.xml b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/conf/solrconfig.xml new file mode 100755 index 0000000..d508fb7 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/conf/solrconfig.xml @@ -0,0 +1,1389 @@ + + + + + + + + + 9.6.1 + + + + + + + + + + + + + + + + + + + + ${solr.data.dir:} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${solr.lock.type:native} + + + + + + + + + + + + + + + + + + + + + + ${solr.ulog.dir:} + + + + + 60000 + true + + + + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + true + + + + + + 20 + + + 200 + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + explicit + 10 + + text + + xml + + + + + + + + + + + + + + explicit + json + true + + + + + + + + + + + + + + + + + + + true + ignored_ + + + true + links + ignored_ + + + + + + + + + text_general + + + + + + default + text + solr.DirectSolrSpellChecker + + internal + + 0.5 + + 2 + + 1 + + 5 + + 4 + + 0.01 + + + + + + wordbreak + solr.WordBreakSolrSpellChecker + name + true + true + 10 + + + + + + + + + + + + + + + + + default + wordbreak + on + true + 10 + 5 + 5 + true + true + 10 + 5 + + + spellcheck + + + + + + + + + + true + + + tvComponent + + + + + + + + + + + + true + false + + + terms + + + + + + + + string + elevate.xml + + + + + + explicit + + + elevator + + + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + + + + + + + + + + + + + + + ,, + ,, + ,, + ,, + ,]]> + ]]> + + + + + + 10 + .,!? + + + + + + + WORD + + + pt + BR + + + + + + + + + + + + + + [^\w-\.] + _ + + + + + + + yyyy-MM-dd'T'HH:mm:ss.SSSZ + yyyy-MM-dd'T'HH:mm:ss,SSSZ + yyyy-MM-dd'T'HH:mm:ss.SSS + yyyy-MM-dd'T'HH:mm:ss,SSS + yyyy-MM-dd'T'HH:mm:ssZ + yyyy-MM-dd'T'HH:mm:ss + yyyy-MM-dd'T'HH:mmZ + yyyy-MM-dd'T'HH:mm + yyyy-MM-dd HH:mm:ss.SSSZ + yyyy-MM-dd HH:mm:ss,SSSZ + yyyy-MM-dd HH:mm:ss.SSS + yyyy-MM-dd HH:mm:ss,SSS + yyyy-MM-dd HH:mm:ssZ + yyyy-MM-dd HH:mm:ss + yyyy-MM-dd HH:mmZ + yyyy-MM-dd HH:mm + yyyy-MM-dd + + + + strings + + java.lang.Boolean + booleans + + + java.util.Date + pdates + + + java.lang.Long + java.lang.Integer + plongs + + + java.lang.Number + pdoubles + + + + + + + + + + + + + + + + + + + + + + + + + text/plain; charset=UTF-8 + + + + + ${velocity.template.base.dir:} + + + + + 5 + + + + + + + + + + + + + + + diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/core.properties b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/core.properties new file mode 100755 index 0000000..f9af0c9 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-cores-9.6.1/sei-publicacoes/core.properties @@ -0,0 +1,4 @@ +name=sei-publicacoes +config=solrconfig.xml +schema=schema.xml +dataDir=/dados/sei-publicacoes/conteudo diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/sei-solr-9.6.1.sh b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-solr-9.6.1.sh new file mode 100755 index 0000000..16f9e76 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/sei-solr-9.6.1.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +VERSAOSOLR=9.6.1 + +clear + +for n in /tmp/solr-${VERSAOSOLR}.tgz /tmp/log4j.properties /tmp/solr.service + do + if [ ! -f $n ]; then + echo "Arquivo ["$n"] nao encontrado." + exit 1 + fi +done + +if [ ! -d "/tmp/sei-cores-${VERSAOSOLR}" ]; then + echo "Diretorio [/tmp/sei-cores-${VERSAOSOLR}] nao encontrado." + exit 1 +fi + +cd /tmp + +tar -xf /tmp/solr-${VERSAOSOLR}.tgz + +cp -Rf /tmp/solr-${VERSAOSOLR} /opt/solr + +mkdir -v /dados + +ln -vs /dados /opt/solr/server/solr + +cp -Rfv /tmp/log4j.properties /opt/solr/server/resources + +cp -Rf /tmp/sei-cores-${VERSAOSOLR}/* /dados + +mv /tmp/solr-${VERSAOSOLR}/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml /opt/solr/solrconfig.bak + +cp -R /tmp/solr-${VERSAOSOLR}/server/solr/configsets/sample_techproducts_configs/conf /dados/sei-protocolos +cp -R /tmp/solr-${VERSAOSOLR}/server/solr/configsets/sample_techproducts_configs/conf /dados/sei-bases-conhecimento +cp -R /tmp/solr-${VERSAOSOLR}/server/solr/configsets/sample_techproducts_configs/conf /dados/sei-publicacoes + +rm -Rf /opt/solr/example + +mkdir -v /dados/sei-protocolos/conteudo +mkdir -v /dados/sei-bases-conhecimento/conteudo +mkdir -v /dados/sei-publicacoes/conteudo + +cp -f /tmp/security.json /opt/solr/server/solr/security.json + +chown -R solr.solr /dados +chown -R solr.solr /opt/solr/ + +cp solr.service /etc/systemd/system/solr.service + diff --git a/containers/solr-9.6.1/assets/solr9.6.1sei/solr.service b/containers/solr-9.6.1/assets/solr9.6.1sei/solr.service new file mode 100755 index 0000000..4668630 --- /dev/null +++ b/containers/solr-9.6.1/assets/solr9.6.1sei/solr.service @@ -0,0 +1,15 @@ +[Unit] +Description=Apache SOLR +After=syslog.target network.target remote-fs.target nss-lookup.target +[Service] +PIDFile=/opt/solr/bin/solr-8983.pid +ExecStart=/opt/solr/bin/solr -p 8983 +User=solr +ExecReload=/bin/kill -s HUP $MAINPID +ExecStop=/opt/solr/bin/solr stop -p 8983 +PrivateTmp=true +LimitNPROC=65000 +LimitNOFILE=65000 + +[Install] +WantedBy=multi-user.target