Skip to content

Add a Dockerfile for building and running EBMC #1121

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

Po-Chun-Chien
Copy link
Contributor

This Dockerfile uses a two-stage build process similar to CBMC's Dockerfile:
the binary is compiled in the first stage and then copied into another container in the second stage.

The build step follows the instructions in COMPILING.md,
with the assumption that the submodule lib/cbmc has already been checked out locally.

@kroening
Copy link
Member

May I suggest installing git in the container -- this would enable #1121 to work.

@Po-Chun-Chien
Copy link
Contributor Author

May I suggest installing git in the container -- this would enable #1121 to work.

Sure, done! I assume you meant #1118, not #1121.
I also tested the Docker file at that branch (git-version)
and the version string with git commit is correctly displayed.

$ podman run --rm localhost/ebmc-version --version
5.7 (ebmc-5.6-21-g840d47fa)

@kroening
Copy link
Member

Thank you -- all that's missing is squashing the two commits together, and this is good to merge.

This Dockerfile uses a two-stage build process similar to CBMC's Dockerfile:
the binary is compiled in the first stage and then copied into another container in the second stage.

The build step follows the instructions in COMPILING.md,
with the assumption that the submodule lib/cbmc has already been checked out locally.
@Po-Chun-Chien
Copy link
Contributor Author

Thank you -- all that's missing is squashing the two commits together, and this is good to merge.

Squashed 👍

@kroening kroening merged commit e3e4f42 into diffblue:main May 28, 2025
7 checks passed
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.

2 participants