eve icon indicating copy to clipboard operation
eve copied to clipboard

Include bpftrace by src part3

Open christoph-zededa opened this issue 1 year ago • 6 comments

christoph-zededa avatar Jun 28 '24 17:06 christoph-zededa

@christoph-zededa has to push again to trigger build workflows. There was some (hopefully intermittent) problem 4 days ago with build workflows not getting triggered.

milan-zededa avatar Jul 02 '24 07:07 milan-zededa

Build problem was:

make: *** No rule to make target 'pkg/bpftrace@sha256', needed by 'pkg/debug'.  Stop.

Because I don't know how to get a "classical" image hash for eve-bpftrace:latest (I used docker image inspect).

So I added a fix for this regex.

christoph-zededa avatar Jul 02 '24 11:07 christoph-zededa

You can find the sha in https://hub.docker.com/r/lfedge/eve-bpftrace/tags, or using a docker pull. But I have no idea how this is done for riscv64. Do we omit other packages like this from the riscv build @rene ?

eriknordmark avatar Jul 02 '24 11:07 eriknordmark

You can find the sha in https://hub.docker.com/r/lfedge/eve-bpftrace/tags, or using a docker pull.

> docker pull lfedge/eve-bpftrace:latest
latest: Pulling from lfedge/eve-bpftrace
Digest: sha256:1cc6c47ffc231db98283e763e02b111bc1503cddbb64f4718e021b9d1fd7ee3f

even then I only see the sha256 hash; I've found https://hub.docker.com/layers/lfedge/eve-bpftrace/f8effaa3169f9e7f1ee71b63c904da62ce0e0212-arm64/images/sha256-990a275ed710c81e6ca052cd2b7e57cbb87b23ade2136f4e59a7636b12e18b8d?context=explore - so using this now.

But I have no idea how this is done for riscv64. Do we omit other packages like this from the riscv build @rene ?

I think I have to add it to https://github.com/lf-edge/eve/blob/master/Makefile#L380 or disable debug container for riscv64. Let's see if this helps or if I need a separate PR.

christoph-zededa avatar Jul 02 '24 12:07 christoph-zededa

You can find the sha in https://hub.docker.com/r/lfedge/eve-bpftrace/tags, or using a docker pull.

> docker pull lfedge/eve-bpftrace:latest
latest: Pulling from lfedge/eve-bpftrace
Digest: sha256:1cc6c47ffc231db98283e763e02b111bc1503cddbb64f4718e021b9d1fd7ee3f

even then I only see the sha256 hash; I've found https://hub.docker.com/layers/lfedge/eve-bpftrace/f8effaa3169f9e7f1ee71b63c904da62ce0e0212-arm64/images/sha256-990a275ed710c81e6ca052cd2b7e57cbb87b23ade2136f4e59a7636b12e18b8d?context=explore - so using this now.

But I have no idea how this is done for riscv64. Do we omit other packages like this from the riscv build @rene ?

I think I have to add it to https://github.com/lf-edge/eve/blob/master/Makefile#L380 or disable debug container for riscv64. Let's see if this helps or if I need a separate PR.

Correct, PKGS_riscv64 is used for riscv64 packages since many other packages are not yet supported...

rene avatar Jul 02 '24 14:07 rene

converted to draft, because https://github.com/lf-edge/eve/pull/4044 fails too seems packages are missing for riscv64 to build bpftrace on alpine

christoph-zededa avatar Jul 02 '24 14:07 christoph-zededa