-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add development environment using docker compose #30
Conversation
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.
The proposed solution only works for published versions of OpenSearch as it is based on the Docker images published by them on each release, so we cannot use versions under development using this approach.
I've developed a variant that uses the OpenSearch snapshots, which are generated even for versions under development. The problem is that the snapshots are minimal and do not include any additional plugins, not even the security one, so we cannot use our security plugin in the frontend neither, unlike the solution added here.
As both solutions have advantages and disadvantages, we'll keep both, so we can decide which version to start (with or without security) depending on the situation.
We'll eventually upgrade these tools if we see fit, hopefully solving the limitations of both partial solutions.
version: "3.9"
services:
# Runs the bootstrap and exits
installer:
image: node:${NODE_VERSION}
container_name: installer
volumes:
- ${REPO_PATH}:/home/node/app
# - ${SECURITY_PLUGIN_REPO_PATH}:/home/node/app/plugins/security
user: "1000:1000"
working_dir: /home/node/app
command: >
/bin/bash -c "
yarn osd bootstrap
"
wazuh-dashboard:
image: node:${NODE_VERSION}
container_name: wazuh-dashboard
depends_on:
installer:
condition: service_completed_successfully
ports:
- 5601:5601 # Map host port 5601 to container port 5601
expose:
- "5601" # Expose port 5601 for web access to Wazuh Dashboard
volumes:
- ${REPO_PATH}:/home/node/app
# - ${SECURITY_PLUGIN_REPO_PATH}:/home/node/app/plugins/security
user: "1000:1000"
working_dir: /home/node/app
command: >
/bin/bash -c "
yarn opensearch snapshot
"
b0a0eff
to
24a4a06
Compare
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.
review
🟢 code
Solves upwards compatibility as the original script is removed in 2.6.0.
ef94275
to
4a5862e
Compare
Description
Added the development environment to manage issues in Wazuh-dashboard.
Issues Resolved
docker-compose
development environment #21Test
You must be able to log in to wazuh-dashboards with the environments.
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr