Skip to content

Commit

Permalink
Add qemu to docker images (pixie-io#1070)
Browse files Browse the repository at this point in the history
Summary: This adds qemu and related utilities to our docker images.
The docker image can now run our BPF tests under qemu.

Relevant Issues: pixie-io#709

Type of change: /kind test-inra

Test Plan: Ran
```
PX_DOCKER_RUN_AS_ROOT=True ./scripts/run_docker_bpf.sh
<inside docker>

bazel test -c opt --config=qemu-bpf  --cache_test_results=no --remote_download_outputs=all //src/stirling/source_connectors/socket_tracer:redis_trace_bpf_test --test_output=streamed --//bazel/test_runners/qemu_with_kernel:kernel_version=latest

```

Signed-off-by: Zain Asgar <zasgar@pixielabs.ai>
  • Loading branch information
zasgar authored Mar 17, 2023
1 parent 3bd9304 commit d75a84a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DOCKER_IMAGE_TAG=202302180032
DOCKER_IMAGE_TAG=202303171712
6 changes: 6 additions & 0 deletions tools/chef/cookbooks/px_dev/recipes/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
# Libtool/unwind, needed for perftools.
'libltdl-dev',
'libunwind-dev',

'qemu',
'qemu-system-arm',
'qemu-system-x86',
'qemu-user-static',
'qemu-utils',
]

apt_package apt_pkg_list do
Expand Down

0 comments on commit d75a84a

Please sign in to comment.