diff --git a/.github/workflows/build-push-iovisor-bcc.yaml b/.github/workflows/build-push-iovisor-bcc.yaml new file mode 100644 index 000000000..e0223c369 --- /dev/null +++ b/.github/workflows/build-push-iovisor-bcc.yaml @@ -0,0 +1,47 @@ +name: Build and push iovisor/bcc ubuntu 22.04 +on: + workflow_dispatch: + inputs: + ghcr_org: + type: string + required: false + default: flatcar + description: | + The name of the GitHub org where the docker images should be pushed. + +permissions: + contents: read + +jobs: + build_and_push: + permissions: + packages: write + strategy: + fail-fast: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: ader1990/bcc + ref: fix_debian_changelog + fetch-depth: 0 + fetch-tags: true + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to GitHub Container Registry (ghcr) + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v5 + with: + context: . + file: ./docker/Dockerfile.ubuntu + platforms: linux/amd64,linux/arm64/v8 + push: true + tags: ghcr.io/${{ inputs.ghcr_org }}/bcc:latest diff --git a/kola/tests/bpf/bpf.go b/kola/tests/bpf/bpf.go index 18db7f531..975794f5d 100644 --- a/kola/tests/bpf/bpf.go +++ b/kola/tests/bpf/bpf.go @@ -16,7 +16,7 @@ import ( ) // cmdPrefix is a temporary hack to pull `bcc` tools into Flatcar -const cmdPrefix = "docker run -d --name %s -v /lib/modules:/lib/modules -v /sys/kernel/debug:/sys/kernel/debug -v /sys/fs/cgroup:/sys/fs/cgroup -v /sys/fs/bpf:/sys/fs/bpf --privileged --net host --pid host quay.io/iovisor/bcc %s" +const cmdPrefix = "docker run -d --name %s -v /lib/modules:/lib/modules -v /sys/kernel/debug:/sys/kernel/debug -v /sys/fs/cgroup:/sys/fs/cgroup -v /sys/fs/bpf:/sys/fs/bpf --privileged --net host --pid host ghcr.io/iovisor/bcc %s" var ( plog = capnslog.NewPackageLogger("github.com/flatcar/mantle", "kola/tests/bpf") @@ -40,8 +40,7 @@ func init() { // required while SELinux policy is not correcly updated to support // `bpf` and `perfmon` permission. Flags: []register.Flag{register.NoEnableSelinux}, - // exclude `arm64` while `quay.io/iovisor/bcc` does not have `arm64` support. - Architectures: []string{"amd64"}, + Architectures: []string{"amd64", "arm64"}, // This test is normally not related to the cloud environment Platforms: []string{"qemu", "qemu-unpriv"}, })