-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 4.6.0-7.16] Upgrade environments to 4.6 and 4.7 (#5744)
Upgrade environments to 4.6 and 4.7 (#5741) * Add wzd-dev.dockerfile * Update osd dev.sh (cherry picked from commit e84f88e) Co-authored-by: Ian Yenien Serrano <[email protected]>
- Loading branch information
1 parent
962a657
commit e4aaa4e
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Usage: docker build --build-arg NODE_VERSION=16.20.0 --build-arg WAZUH_DASHBOARD_VERSION=4.6.0 -t quay.io/wazuh/osd-dev:4.6.0 -f wzd-dev.Dockerfile . | ||
|
||
ARG NODE_VERSION | ||
FROM node:${NODE_VERSION} AS base | ||
ARG WAZUH_DASHBOARD_VERSION | ||
USER node | ||
RUN git clone --depth 1 --branch ${WAZUH_DASHBOARD_VERSION} https://github.com/wazuh/wazuh-dashboard.git /home/node/kbn | ||
RUN chown node.node /home/node/kbn | ||
|
||
WORKDIR /home/node/kbn | ||
RUN yarn osd bootstrap --production | ||
|
||
|
||
WORKDIR /home/node/kbn/plugins | ||
RUN git clone --depth 1 --branch ${WAZUH_DASHBOARD_VERSION} https://github.com/wazuh/wazuh-security-dashboards-plugin.git | ||
WORKDIR /home/node/kbn/plugins/wazuh-security-dashboards-plugin | ||
RUN yarn install | ||
|
||
RUN mkdir -p /home/node/kbn/data/wazuh/config | ||
|
||
FROM node:${NODE_VERSION} | ||
USER node | ||
COPY --chown=node:node --from=base /home/node/kbn /home/node/kbn | ||
WORKDIR /home/node/kbn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters