crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.96k stars 466 forks source link

Add riscv64 support #2763

Open liberodark opened 9 months ago

liberodark commented 9 months ago

What would you like to be added?

Hi,

Please can you add riscv64 support on your release ? Also have riscv64 servers if you want to work on it ?

Best Regards

Why is this needed?

Because im work on full RISC-V infrastructure & that help to improve support on RISC-V.

github-actions[bot] commented 9 months ago

@liberodark: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
github-actions[bot] commented 9 months ago

@liberodark: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
liberodark commented 9 months ago

/kind feature

sabban commented 9 months ago

Hi, Do you want to see release assets support riscv64 servers or see packages for some distributions ?

liberodark commented 9 months ago

Hi, i think package for Debian riscv64 with DEB would be great.

liberodark commented 6 months ago

How to build :

#!/bin/bash

export BUILD_VERSION=v1.6.0
export GOARCH=riscv64
export CGO=1

apt install -y golang-go rsync tar curl gpg git pkg-config make gcc libre2-dev g++ gettext-base whiptail
git clone https://github.com/crowdsecurity/crowdsec
cd crowdsec || exit
git checkout v1.6.0
make build
bash wizard.sh -i

# Wait 10sec
sleep 10s

wget https://github.com/crowdsecurity/cs-firewall-bouncer/releases/download/v0.0.28/crowdsec-firewall-bouncer-linux-riscv64.tgz
tar -xvf crowdsec-firewall-bouncer-linux-riscv64.tgz
cd /crowdsec-firewall-bouncer-v* || exit
bash install.sh
cscli version
2024/04/05 23:55:10 version: v1.6.0-4b8e6cd7
2024/04/05 23:55:10 Codename: alphaga
2024/04/05 23:55:10 BuildDate: 2024-04-05_23:47:26
2024/04/05 23:55:10 GoVersion: 1.22.2
2024/04/05 23:55:10 Platform: linux
2024/04/05 23:55:10 libre2: C++
2024/04/05 23:55:10 Constraint_parser: >= 1.0, <= 3.0
2024/04/05 23:55:10 Constraint_scenario: >= 1.0, <= 3.0
2024/04/05 23:55:10 Constraint_api: v1
2024/04/05 23:55:10 Constraint_acquis: >= 1.0, < 2.0