kaitai-io / kaitai_struct_visualizer

Kaitai Struct: visualizer and hex viewer tool
https://rubygems.org/gems/kaitai-struct-visualizer
GNU General Public License v3.0
280 stars 25 forks source link

Dockerize `ksv` #40

Closed abitrolly closed 3 years ago

abitrolly commented 4 years ago

I use podman, but the instructions should work with docker the same.

To build the image.

podman build . --tag ksv

To test it.

podman run ksv

To share current directory and run interactively.

podman run -v "$(pwd):/share":Z -w "/share" -it ksv

The full command I am using to inspect contents of .snap file using .ksy definition placed in current dir.

podman run -v "$(pwd):/share":Z -w "/share" -it ksv v3.snap squashfs_superblock.ksy

This generated the following output.

image

Should there be colors?

abitrolly commented 3 years ago

@GreyCat any comments? I can try to setup a GitHub Action to post the image to DockerHub.

GreyCat commented 3 years ago

Apologies for late reply!

Having Docker container makes perfect sense, let me merge this into the repo.

abitrolly commented 3 years ago

@GreyCat awesome. If you could you place a label hacktoberfest-accepted I may get a better chance to get a t-shirt in exchange for some personal data. :D

abitrolly commented 3 years ago

More info is here https://hacktoberfest.digitalocean.com/hacktoberfest-update

GreyCat commented 3 years ago

Good luck :)

abitrolly commented 3 years ago

@GreyCat thanks. I am not sure it will qualify as the PR was made before October. That's why there is #41 that improves image usage process. )