Skip to content
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

Merged
merged 65 commits into from
Jul 17, 2024

Conversation

pmacius
Copy link
Contributor

@pmacius pmacius commented Jul 15, 2024

.github/workflows/build_and_test.yml Outdated Show resolved Hide resolved
.github/workflows/build_and_test.yml Outdated Show resolved Hide resolved
.github/workflows/build_and_test.yml Outdated Show resolved Hide resolved
.github/workflows/build_and_test.yml Show resolved Hide resolved
.github/workflows/build_and_test.yml Show resolved Hide resolved
.github/workflows/build_and_test.yml Show resolved Hide resolved
scripts/fetch-artifact.sh Show resolved Hide resolved
search/enterprise/metadata/Dockerfile Outdated Show resolved Hide resolved
@pmacius pmacius requested review from gionn and alxgomz July 16, 2024 11:51
.github/workflows/build_and_test.yml Outdated Show resolved Hide resolved
search/enterprise/metadata/Dockerfile Outdated Show resolved Hide resolved
search/enterprise/metadata/Dockerfile Outdated Show resolved Hide resolved
.github/workflows/build_and_test.yml Show resolved Hide resolved
.github/workflows/build_and_test.yml Outdated Show resolved Hide resolved
@pmacius pmacius requested a review from gionn July 17, 2024 09:02

ADD search/enterprise/metadata/*-app.jar /opt/app.jar

CMD java $JAVA_OPTS -jar /opt/app.jar
Copy link
Member

@gionn gionn Jul 17, 2024

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

Copy link
Contributor Author

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

environment:
SPRING_ELASTICSEARCH_REST_URIS: http://elastic:9200
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
healthcheck:
Copy link
Member

@gionn gionn Jul 17, 2024

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?

Copy link
Contributor Author

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.

Copy link
Member

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

@pmacius pmacius requested a review from gionn July 17, 2024 13:16
@pmacius pmacius merged commit d7b7afe into main Jul 17, 2024
2 checks passed
@pmacius pmacius deleted the OPSEXP-2732 branch July 17, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants