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

Wazuh-Kibana customizable at plugin level #117

Merged
merged 3 commits into from Feb 8, 2019
Merged

Conversation

SitoRBJ
Copy link
Contributor

@SitoRBJ SitoRBJ commented Feb 8, 2019

Hello team,

This PR solves issue #114.

The Wazuh-Kibana image can now be built using arguments to manage the plugins we want to have enabled.

ARG XPACK_CANVAS="true"
ARG XPACK_LOGS="true"
ARG XPACK_INFRA="true"
ARG XPACK_ML="true"
ARG XPACK_DEVTOOLS="true"
ARG XPACK_MONITORING="true"
ARG XPACK_APM="true"

By default, we will have all plugins enabled being the construction command the following:

$ docker build kibana

For each plugin we want to disable we'll have to add arguments to the command:

$ docker build kibana --build-arg ARG_KEY_1=ARG_VALUE_1 . . . --build-arg ARG_KEY_n=ARG_VALUE_n

To disable all plugins the command would be serious:

$ docker build kibana --build-arg XPACK_CANVAS="false" --build-arg XPACK_LOGS="false" --build-arg XPACK_INFRA="false" --build-arg XPACK_ML="false" --build-arg XPACK_DEVTOOLS="false" --build-arg XPACK_MONITORING="false" --build-arg XPACK_APM="false"

Finally we add to Dockerfile the Kibana command to optimize plugins in case we have enabled new plugins or disabled active plugins.

RUN /usr/local/bin/kibana-docker --optimize

In this way we avoid that in the creation of the containers we have functions that delay the process as it happened with the optimization.

Best regards,

Alfonso Ruiz-Bravo

@SitoRBJ SitoRBJ added enhancement operations Top priority issues. labels Feb 8, 2019
@SitoRBJ SitoRBJ requested a review from manuasir February 8, 2019 14:04
@SitoRBJ SitoRBJ changed the title Kibana optimized Wazuh-Kibana customizable at plugin level Feb 8, 2019
@manuasir
Copy link
Contributor

manuasir commented Feb 8, 2019

Thanks @SitoRBJ , great job!

@manuasir manuasir merged commit 22eeee3 into 3.8.2_6.5.4 Feb 8, 2019
@manuasir manuasir deleted the kibana-optimized branch February 8, 2019 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operations Top priority issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants