Skip to content
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

feat(libbpf/bpftool): scaffold libbpf/bpftool #28494

Merged
merged 7 commits into from
Nov 5, 2024

Conversation

borissmidt
Copy link
Contributor

@borissmidt borissmidt commented Nov 5, 2024

libbpf/bpftool: Automated upstream mirror for bpftool stand-alone build

Check List

@borissmidt borissmidt marked this pull request as draft November 5, 2024 19:57
@borissmidt
Copy link
Contributor Author

Not sure how i have to do the test.
I also noticed one issue with the package, the binaries are not made to be executable will aqua handle this?
i.e. chmod +x binary?

@borissmidt borissmidt marked this pull request as ready for review November 5, 2024 20:24
@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Nov 5, 2024

Not sure how i have to do the test.

https://aquaproj.github.io/docs/products/aqua-registry/contributing/#how-to-add-a-package

Run test: cmdx t <package name>

You can also execute tools in a container by cmdx con.

$ cmdx con
+ bash scripts/connect.sh
[INFO] Connecting to the container aqua-registry (linux/arm64)
root@9238446e53ff:/workspace# bpftool --help
Usage: bpftool [OPTIONS] OBJECT { COMMAND | help }
       bpftool batch file FILE
       bpftool version

       OBJECT := { prog | map | link | cgroup | perf | net | feature | btf | gen | struct_ops | iter }
       OPTIONS := { {-j|--json} [{-p|--pretty}] | {-d|--debug} |
                    {-V|--version} }

If you want to run tools in your machine without containers, there are two ways.

  1. Import pkgs/<package>/pkg.yaml in aqua.yaml
packages:
  # ...
  - import: pkgs/libbpf/bpftool/pkg.yaml

You need to run aqua policy allow to use the local registry.

aqua policy allow

Then you can run bpftool.

bpftool --help
  1. Add aqua-all.yaml in $AQUA_GLOBAL_CONFIG
export AQUA_GLOBAL_CONFIG=$PWD/aqua-all.yaml:$AQUA_GLOBAL_CONFIG

You need to run aqua policy allow to use the local registry.

aqua policy allow

Then you can run all tools.

bpftool --help

I also noticed one issue with the package, the binaries are not made to be executable will aqua handle this?
i.e. chmod +x binary?

aqua makes commands executable.

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Nov 5, 2024
@suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke merged commit 69fef4b into aquaproj:main Nov 5, 2024
16 checks passed
@suzuki-shunsuke suzuki-shunsuke added this to the v4.246.2 milestone Nov 5, 2024
@suzuki-shunsuke
Copy link
Member

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Nov 20, 2024
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [aquaproj/aqua-registry](https://github.com/aquaproj/aqua-registry) | minor | `v4.239.0` -> `v4.255.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>aquaproj/aqua-registry (aquaproj/aqua-registry)</summary>

### [`v4.255.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.255.0)

[Compare Source](aquaproj/aqua-registry@v4.254.0...v4.255.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.255.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.255.0) | aquaproj/aqua-registry@v4.254.0...v4.255.0

#### 🎉 New Packages

[#&#8203;28944](aquaproj/aqua-registry#28944) [\_go/sigsum.org/sigsum-go#cmd/sigsum-\*](https://git.glasklar.is/sigsum/core/sigsum-go): Sigsum command line tools

To update these packages by Renovate, you need to update aqua-renovate-config to 2.4.0 or later.
https://github.com/aquaproj/aqua-renovate-config/releases/tag/2.4.0

#### Fixes

[#&#8203;28921](aquaproj/aqua-registry#28921) kattouf/ProgressLine: Follow up changes of progressline 0.2.3

### [`v4.254.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.254.0)

[Compare Source](aquaproj/aqua-registry@v4.253.0...v4.254.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.254.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.254.0) | aquaproj/aqua-registry@v4.253.0...v4.254.0

#### 🎉 New Packages

[#&#8203;28869](aquaproj/aqua-registry#28869) [apple/pkl-go/pkl-gen-go](https://github.com/apple/pkl-go): Generates Go bindings for a Pkl module [@&#8203;takumin](https://github.com/takumin)

### [`v4.253.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.253.0)

[Compare Source](aquaproj/aqua-registry@v4.252.0...v4.253.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.253.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.253.0) | aquaproj/aqua-registry@v4.252.0...v4.253.0

#### 🎉 New Packages

[#&#8203;28856](aquaproj/aqua-registry#28856) [koki-develop/moview](https://github.com/koki-develop/moview): Play video in terminal
[#&#8203;28860](aquaproj/aqua-registry#28860) [tailor-platform/tailorctl](https://github.com/tailor-platform/tailorctl): Command line tool for Tailor Platform [@&#8203;dragon3](https://github.com/dragon3)

### [`v4.252.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.252.0)

[Compare Source](aquaproj/aqua-registry@v4.251.0...v4.252.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.252.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.252.0) | aquaproj/aqua-registry@v4.251.0...v4.252.0

#### 🎉 Reached 1,600 packages

Thank you all contributors!

#### 🎉 New Packages

[#&#8203;28828](aquaproj/aqua-registry#28828) [rust-cross/cargo-zigbuild](https://github.com/rust-cross/cargo-zigbuild): Compile Cargo project with zig as linker [@&#8203;takumin](https://github.com/takumin)

### [`v4.251.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.251.0)

[Compare Source](aquaproj/aqua-registry@v4.250.0...v4.251.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.251.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.251.0) | aquaproj/aqua-registry@v4.250.0...v4.251.0

#### 🎉 New Packages

[#&#8203;28815](aquaproj/aqua-registry#28815) [rui314/mold](https://github.com/rui314/mold): Mold: A Modern Linker [@&#8203;takumin](https://github.com/takumin)

### [`v4.250.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.250.0)

[Compare Source](aquaproj/aqua-registry@v4.249.0...v4.250.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.250.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.250.0) | aquaproj/aqua-registry@v4.249.0...v4.250.0

#### 🎉 New Packages

[#&#8203;28751](aquaproj/aqua-registry#28751) [codeberg.org/mergiraf/mergiraf](https://codeberg.org/mergiraf/mergiraf): A syntax-aware git merge driver for a growing collection of programming languages and file formats
[#&#8203;28710](aquaproj/aqua-registry#28710) [chime/mani-diffy](https://github.com/chime/mani-diffy): mani-diffy walks a hierarchy of Argo CD Application templates, renders Kubernetes manifests from the input templates, and posts the rendered files back for the user to review and validate [@&#8203;ponkio-o](https://github.com/ponkio-o)
[#&#8203;28720](aquaproj/aqua-registry#28720) [jedisct1/piknik](https://github.com/jedisct1/piknik): Copy/paste anything over the network

#### Fixes

[#&#8203;28783](aquaproj/aqua-registry#28783) jenkins-x/jx: Regenerate the setting
[#&#8203;28765](aquaproj/aqua-registry#28765) protocolbuffers/protobuf-go/protoc-gen-go: Regenerate the setting [@&#8203;frozenbonito](https://github.com/frozenbonito)

### [`v4.249.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.249.0)

[Compare Source](aquaproj/aqua-registry@v4.248.0...v4.249.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.249.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.249.0) | aquaproj/aqua-registry@v4.248.0...v4.249.0

#### 🎉 New Packages

[#&#8203;28608](aquaproj/aqua-registry#28608) [goph/licensei](https://github.com/goph/licensei): Library and various tools for working with project licenses
[#&#8203;28568](aquaproj/aqua-registry#28568) [openshift/osdctl](https://github.com/openshift/osdctl): CLI for the OSD utilities

#### Fixes

[#&#8203;28609](aquaproj/aqua-registry#28609) Rename the package `lotabout/skim` to `skim-rs/skim`

The GitHub Repository of the package was transferred from [lotabout/skim](https://github.com/lotabout/skim) to [skim-rs/skim](https://github.com/skim-rs/skim).

### [`v4.248.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.248.0)

[Compare Source](aquaproj/aqua-registry@v4.247.0...v4.248.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.248.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.248.0) | aquaproj/aqua-registry@v4.247.0...v4.248.0

#### 🎉 New Packages

[#&#8203;28518](aquaproj/aqua-registry#28518) [cloverrose/connectnew](https://github.com/cloverrose/connectnew): Go linter checking if \&connect.Request or \&connect.Response are used. Instead connect.NewRequest or connect.NewResponse should be used [@&#8203;cloverrose](https://github.com/cloverrose)
[#&#8203;28520](aquaproj/aqua-registry#28520) [ebi-yade/ecresolve](https://github.com/ebi-yade/ecresolve): Resolves AWS ECR images with prioritized tag-based lookup [@&#8203;ponkio-o](https://github.com/ponkio-o)
[#&#8203;28521](aquaproj/aqua-registry#28521) [takaishi/tfclean](https://github.com/takaishi/tfclean): tfclean is tool to remove applied moved block, import block, etc

### [`v4.247.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.247.0)

[Compare Source](aquaproj/aqua-registry@v4.246.1...v4.247.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.247.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.247.0) | aquaproj/aqua-registry@v4.246.1...v4.247.0

#### 🎉 New Packages

[#&#8203;28494](aquaproj/aqua-registry#28494) [libbpf/bpftool](https://github.com/libbpf/bpftool): Automated upstream mirror for bpftool stand-alone build [@&#8203;borissmidt](https://github.com/borissmidt)

#### Fixes

[#&#8203;28503](aquaproj/aqua-registry#28503) containerd/containerd: Regenerate the setting
[#&#8203;28472](aquaproj/aqua-registry#28472) rust-lang/rust-analyzer: Regenerate the setting

### [`v4.246.1`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.246.1)

[Compare Source](aquaproj/aqua-registry@v4.246.0...v4.246.1)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.246.1) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.246.1) | aquaproj/aqua-registry@v4.246.0...v4.246.1

#### Fixes

[#&#8203;28357](aquaproj/aqua-registry#28357) sho-hata/tparagen: Follow up changes of tparagen v1.1.2

### [`v4.246.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.246.0)

[Compare Source](aquaproj/aqua-registry@v4.245.1...v4.246.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.246.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.246.0) | aquaproj/aqua-registry@v4.245.1...v4.246.0

#### 🎉 New Packages

[#&#8203;28289](aquaproj/aqua-registry#28289) [apple/pkl](https://github.com/apple/pkl): A configuration as code language with rich validation and tooling
[#&#8203;28307](aquaproj/aqua-registry#28307) [crates.io/zizmor](https://github.com/woodruffw/zizmor): Finds security issues in GitHub Actions setups
[#&#8203;28280](aquaproj/aqua-registry#28280) [openshift-online/ocm-cli](https://github.com/openshift-online/ocm-cli): CLI for the Red Hat OpenShift Cluster Manager

### [`v4.245.1`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.245.1)

[Compare Source](aquaproj/aqua-registry@v4.245.0...v4.245.1)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.245.1) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.245.1) | aquaproj/aqua-registry@v4.245.0...v4.245.1

#### Fixes

[#&#8203;28268](aquaproj/aqua-registry#28268) tofuutils/tenv: Add terragrunt, atmos, and tf

### [`v4.245.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.245.0)

[Compare Source](aquaproj/aqua-registry@v4.244.0...v4.245.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.245.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.245.0) | aquaproj/aqua-registry@v4.244.0...v4.245.0

#### 🎉 New Packages

[#&#8203;28238](aquaproj/aqua-registry#28238) [dependabot/cli](https://github.com/dependabot/cli): A tool for testing and debugging Dependabot update jobs [@&#8203;ponkio-o](https://github.com/ponkio-o)
[#&#8203;28241](aquaproj/aqua-registry#28241) [handlename/awsc](https://github.com/handlename/awsc): awsc (AWS cli with Caution) is wrapper for AWS CLI. It displays AWS account information before running any AWS CLI subcommands

### [`v4.244.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.244.0)

[Compare Source](aquaproj/aqua-registry@v4.243.0...v4.244.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.244.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.244.0) | aquaproj/aqua-registry@v4.243.0...v4.244.0

#### 🎉 New Packages

[#&#8203;28228](aquaproj/aqua-registry#28228) [cloverrose/unusedinterface](https://github.com/cloverrose/unusedinterface): unusedinterface finds unused interface in their package [@&#8203;cloverrose](https://github.com/cloverrose)

### [`v4.243.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.243.0)

[Compare Source](aquaproj/aqua-registry@v4.242.0...v4.243.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.243.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.243.0) | aquaproj/aqua-registry@v4.242.0...v4.243.0

#### 🎉 New Packages

[#&#8203;28191](aquaproj/aqua-registry#28191) [k1LoW/tbls-ask](https://github.com/k1LoW/tbls-ask): tbls-ask is an external subcommand of tbls for asking LLM of the datasource [@&#8203;ponkio-o](https://github.com/ponkio-o)

### [`v4.242.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.242.0)

[Compare Source](aquaproj/aqua-registry@v4.241.0...v4.242.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.242.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.242.0) | aquaproj/aqua-registry@v4.241.0...v4.242.0

#### 🎉 New Packages

[#&#8203;28180](aquaproj/aqua-registry#28180) [urfave/gfmrun](https://github.com/urfave/gfmrun): GitHub-Flavored Markdown Runner

### [`v4.241.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.241.0)

[Compare Source](aquaproj/aqua-registry@v4.240.0...v4.241.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.241.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.241.0) | aquaproj/aqua-registry@v4.240.0...v4.241.0

#### 🎉 New Packages

[#&#8203;22503](aquaproj/aqua-registry#22503) [slack.com/slack-cli](https://api.slack.com/automation/cli/commands): Slack CLI allows you to interact with your workflow apps via the command line

> \[!WARNING]
>
> -   It's difficult to update this package automatically by both Renovate and `aqua update` command
>     -   You have to update this package manually
> -   It's difficult to get the version by `aqua g` command
>     -   You have to set the version manually
>
> ```console
> $ aqua g slack.com/slack-cli
> - name: slack.com/slack-cli
>   version: '[SET PACKAGE VERSION]'
> ```

### [`v4.240.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.240.0)

[Compare Source](aquaproj/aqua-registry@v4.239.1...v4.240.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.240.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.240.0) | aquaproj/aqua-registry@v4.239.1...v4.240.0

#### 🎉 New Packages

[#&#8203;28165](aquaproj/aqua-registry#28165) [turbot/powerpipe](https://github.com/turbot/powerpipe): Powerpipe: Dashboards for DevOps. Visualize cloud configurations. Assess security posture against a massive library of benchmarks. Build custom dashboards with code

#### Features

[#&#8203;28121](aquaproj/aqua-registry#28121) ziglang/zig: Enable minisign

### [`v4.239.1`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.239.1)

[Compare Source](aquaproj/aqua-registry@v4.239.0...v4.239.1)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.239.1) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.239.1) | aquaproj/aqua-registry@v4.239.0...v4.239.1

#### Features

[#&#8203;28098](aquaproj/aqua-registry#28098) ziglang/zig: Support dev versions

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants