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

Add docker build. #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add docker build. #10

wants to merge 2 commits into from

Conversation

Tim-Nosco
Copy link

This Dockerfile builds qemu after applying the patch, then builds cannoli in a separate stage.

This container will make a CI release possible in a future patch.

jocular added 2 commits January 30, 2023 11:11
This Dockerfile builds qemu after applying the patch,
then builds cannoli in a separate stage.

This container will make a CI release possible in a future patch.
Building static qemu bins interferes with proper cannoli operation.
@Tim-Nosco
Copy link
Author

Tim-Nosco commented Jan 30, 2023

To test the docker feature:

First, build with docker build -t cannoli .

Then in one terminal, run cannoli:

docker run \
    -it \
    --rm \
    -w /build/cannoli/examples/symbolizer \
    cannoli \
    /root/.cargo/bin/cargo run --release

And in the other, run the application:

docker exec \
    -it \
    -w /build/cannoli/examples/symbolizer \
    $(docker ps -q) \
    bash -c " \
        /build/qemu/qemu-mipsel-patch \
            -cannoli /build/cannoli/target/release/libjitter_always.so \
            ./example_app && true \
        "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant