Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Minimize Docker image, publish to GitHub Container Registry #422

Merged
merged 22 commits into from
Nov 2, 2021
Merged

Conversation

sim642
Copy link
Member

@sim642 sim642 commented Nov 1, 2021

This is a rewrite of the Dockerfile to use a multi-stage build, which constructs a final Docker image that doesn't contain the massive opam, OCaml compiler and build dependencies.

Also adds a workflow for automatically building and publishing it on GitHub Container Registry instead of DockerHub: https://github.com/goblint/analyzer/pkgs/container/analyzer.

There is now a GitHub Action for Goblint, which uses the minimized Docker image: https://github.com/goblint/action.
Here's a repository where I tested that it works: https://github.com/sim642/goblint-action-test.
Currently it's not too useful since it just outputs warnings to the terminal, but after #376 it should integrate even better, while not requiring Goblint to be compiled each time and weird path hacks.

@sim642 sim642 added usability setup Dependencies, CI, releasing labels Nov 1, 2021
@sim642 sim642 merged commit 9c3778d into master Nov 2, 2021
@sim642 sim642 deleted the docker branch November 2, 2021 15:56
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
setup Dependencies, CI, releasing usability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant