Commit 08d83388d08b7ce949e768a3852ad8f47c860be1
1 parent
7d8a9870
Exists in
master
Remoção de script de entrypoint.
Showing
3 changed files
with
5 additions
and
8 deletions
Show diff stats
Dockerfile
@@ -15,10 +15,13 @@ COPY assets/msttcore-fonts-2.0-3.noarch.rpm /tmp | @@ -15,10 +15,13 @@ COPY assets/msttcore-fonts-2.0-3.noarch.rpm /tmp | ||
15 | COPY assets/index/* /tmp/ | 15 | COPY assets/index/* /tmp/ |
16 | COPY assets/sei-solr-6.1.0.sh /tmp/sei-solr-6.1.0.sh | 16 | COPY assets/sei-solr-6.1.0.sh /tmp/sei-solr-6.1.0.sh |
17 | COPY install.sh /install.sh | 17 | COPY install.sh /install.sh |
18 | -COPY entrypoint.sh /entrypoint.sh | ||
19 | 18 | ||
20 | RUN sh /install.sh | 19 | RUN sh /install.sh |
21 | ############################## FIM DA INSTALACAO ############################### | 20 | ############################## FIM DA INSTALACAO ############################### |
22 | 21 | ||
23 | EXPOSE 8983 | 22 | EXPOSE 8983 |
24 | -CMD ["/entrypoint.sh"] | 23 | + |
24 | +# ENTRYPOINT permite que o docker daemon passe signais para a aplicação, como o SIGTERM, | ||
25 | +# isso permite que a aplicação consiga se encerrar sozinha quando executamos | ||
26 | +# docker stop. | ||
27 | +ENTRYPOINT ["/opt/solr/bin/solr", "start", "-f", "-p", "8983"] |
entrypoint.sh
install.sh
@@ -30,7 +30,4 @@ curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=sei-publicacoes& | @@ -30,7 +30,4 @@ curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=sei-publicacoes& | ||
30 | rm -rf /tmp/* | 30 | rm -rf /tmp/* |
31 | yum clean all | 31 | yum clean all |
32 | 32 | ||
33 | -# Configuração de permissões de execução no script de inicialização do container | ||
34 | -chmod +x /entrypoint.sh | ||
35 | - | ||
36 | exit 0 | 33 | exit 0 |