skydive icon indicating copy to clipboard operation
skydive copied to clipboard

provide non-x86 ebpf-builder

Open grooverdan opened this issue 5 years ago • 1 comments

I got an error building skydive as the skydive/ebpf-builder image is x86_64 only.

I worked around this with:

ebpf/Makefile
@@ -35,7 +36,7 @@ build-ebpf-docker-image:
 pull-ebpf-docker-image:
        docker pull $(DOCKER_EBPF_BUILDER_IMAGE):latest
 
-docker-ebpf-build: pull-ebpf-docker-image
+docker-ebpf-build: build-ebpf-docker-image
        docker run --rm \
                --env=UID=$(UID) \
                --env=GID=$(GID) \
I'm wondering if there's a way to encode this so non-x86 can work cleaner.

Or make the ebpf-builder image multi-arch?

grooverdan avatar Mar 25 '20 04:03 grooverdan

Daniel, thanks for this. We do need SkyDive for power but the ebpf Makefile always pulls x86 docker image leading to the exec format error on P9/Power. Please see below:

  $ uname -a
  Linux knpower 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:37:15 UTC 2018 **ppc64le** ppc64le ppc64le GNU/Linux
  $ docker pull **skydive/ebpf-builder:latest**
   latest: Pulling from skydive/ebpf-builder
    Digest: sha256:5b52e9dce04a32b0644426da33d6352451831f29a1967813c13760d2457a3e9d
   Status: Image is up to date for skydive/ebpf-builder:latest
  $ docker info --format='{{json .Architecture}}'
  "ppc64le"
  $ docker inspect skydive/ebpf-builder:latest --format='{{json .Architecture}}'
  "amd64"

Can ebpf-builder multi-arch image be provided for building Skydive for Power.

Kuldip-Nanda avatar Apr 28 '20 02:04 Kuldip-Nanda