-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPSEXP-2732 Add search enterprise metadata image Dockerfile #1
Conversation
test/postman/docker-compose/acs-test-docker-compose-collection.json
Outdated
Show resolved
Hide resolved
|
||
ADD search/enterprise/metadata/*-app.jar /opt/app.jar | ||
|
||
CMD java $JAVA_OPTS -jar /opt/app.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it won't handle shutdown gracefully using this syntax because it will be wrapped in a sh -c
I think the only alternative is to have an external .sh script with the java command prepended with exec
which is the built-in to replace the current process with a new process (which fix the shutdown issue)
you can test this using docker stop <container>
and see it doesn't react until the kill timeout triggers in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
live-indexing-metadata-1 | 2024-07-17T13:14:12.041Z INFO 1 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
live-indexing-metadata-1 | 2024-07-17T13:14:12.042Z INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
live-indexing-metadata-1 | 2024-07-17T13:14:12.042Z INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 0 ms
live-indexing-metadata-1 | 2024-07-17T13:14:57.696Z INFO 1 --- [ionShutdownHook] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.1.0 (camel-1) is shutting down (timeout:45s)
live-indexing-metadata-1 | 2024-07-17T13:14:57.706Z INFO 1 --- [ionShutdownHook] o.a.c.impl.engine.AbstractCamelContext : Routes stopped (stopped:2)
live-indexing-metadata-1 | 2024-07-17T13:14:57.706Z INFO 1 --- [ionShutdownHook] o.a.c.impl.engine.AbstractCamelContext : Stopped metadata-consumer (sjms://org.alfresco.search.metadata.event)
live-indexing-metadata-1 | 2024-07-17T13:14:57.706Z INFO 1 --- [ionShutdownHook] o.a.c.impl.engine.AbstractCamelContext : Stopped retry-consumer (sjms://org.alfresco.search.metadata.retry.event)
live-indexing-metadata-1 | 2024-07-17T13:14:57.709Z INFO 1 --- [ionShutdownHook] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.1.0 (camel-1) shutdown in 12ms (uptime:1m13s)
live-indexing-metadata-1 exited with code 143
docker-compose/docker-compose.yml
Outdated
environment: | ||
SPRING_ELASTICSEARCH_REST_URIS: http://elastic:9200 | ||
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616 | ||
healthcheck: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be moved into the dockerfile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it can as a default behavior, it can still be overrode from docker compose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was talking about the healthcheck xD
Ref: OPSEXP-2732