Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Dec 12, 2023
1 parent 6e26578 commit 2589c81
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions dev-tools/build-packages/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Images

Generation of Wazuh dashboard docker images

### Prerequisites

You must already have the final Wazuh dashboard package.

You can run it from the GitHub actions to generate the tar package.

Download the zip file that generates the action and place it in the `*/wazuh-dashboard/dev-tools/build-packages/docker/` folder.(If you have generated it locally, it generates a zip of the tar.gz file)

### Image generation

To build an image, use the docker build command like:

Use the `--build-arg` flag to specify the package name.

For example, to build the image for Wazuh dashboard 4.9.0.
You must have the file wazuh-dashboard-4.9.0-00-linux-x64.tar.gz.zip in the specified path and specify it in the command with parameter PACKAGE_NAME.

```bash
docker build -f ./wzd.Dockerfile . --build-arg PACKAGE_PATH=wazuh-dashboard-4.9.0-00-linux-x64.tar.gz.zip -t wazuh-dashboard:4.9.0
```

0 comments on commit 2589c81

Please sign in to comment.