Skip to content

Add docker build.#10

Open
Tim-Nosco wants to merge 2 commits intoMarginResearch:mainfrom
Tim-Nosco:main
Open

Add docker build.#10
Tim-Nosco wants to merge 2 commits intoMarginResearch:mainfrom
Tim-Nosco:main

Conversation

@Tim-Nosco
Copy link
Copy Markdown

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
Copy Markdown
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