Skip to content

Commit

Permalink
Add installation of dependencies for DEB assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Jan 3, 2024
1 parent 246f2d5 commit eeb2c42
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/r_assemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
name: ${{ inputs.min }}
path: artifacts/dist

- name: Provision
if: ${{ inputs.distribution == 'deb' }}
run:
bash scripts/provision.sh

- name: Run `assemble.sh`
run: |
bash scripts/assemble.sh -v ${{ vars.OPENSEARCH_VERSION }} -p linux -a ${{ inputs.architecture }} -d ${{ inputs.distribution }}
Expand Down
4 changes: 3 additions & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ The script will:
- Bundle a DEB file with `debmake` and the `Makefile`.

> `rpmbuild` is invoked from `wazuh-indexer/artifacts/tmp/rpm`. It creates the {BUILD,RPMS,SOURCES,SRPMS,SPECS,TMP} folders and applies the rules in the SPEC file. If successful, `rpmbuild` will generate the package in the `RPMS/` folder. The script will copy it to `wazuh-indexer/artifacts/dist` and clean: remove the `tmp\` folder and its contents.
> `debmake` and other dependencies can be installed using the provision.sh script. The
> script is invoked by the GitHub Workflow.
<!-- TODO update -->
Current folder loadout at this stage:
```
/deb/$ARCH
Expand Down
10 changes: 10 additions & 0 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Provision script for assembly of DEB packages

# Install necessary packages
apt-get update -y && apt-get upgrade -y && apt-get install -y curl build-essential curl && \
apt-get install -y debmake debhelper-compat && \
apt-get install -y libxrender1 libxtst6 libasound2 libxi6 libgconf-2-4 && \
apt-get install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libatspi2.0-dev libxcomposite-dev libxdamage1 libxfixes3 libxfixes-dev libxrandr2 libgbm-dev libxkbcommon-x11-0 libpangocairo-1.0-0 libcairo2 libcairo2-dev libnss3 libnspr4 libnspr4-dev freeglut3 && \
apt-get clean -y

0 comments on commit eeb2c42

Please sign in to comment.