dod-cyber-crime-center / pyhidra

Pyhidra is a Python library that provides direct access to the Ghidra API within a native CPython interpreter using jpype.
Other
176 stars 15 forks source link

Install pyhidra in a docker container #35

Open OscarAbundez23 opened 8 months ago

OscarAbundez23 commented 8 months ago

Hi!! Is there a way to use pyhidra in a docker container? I've already tried to install it, but it tells me that it "could not find a version that satisfies the requirement pyhidra (from versions: none)"

dc3-tsd commented 8 months ago

While we do not currently maintain a public containerized version of Pyhidra it should be doable. When composing your container just make sure to have the same versions of Python and Ghidra installed as you would on a non-containerized installation.

clearbluejar commented 8 months ago

I have a set of docker containers I publish for testing my python packages that rely on pyhidra. They are quite big as they include Ghidra, Java, and Python on a debian image, but they might work for you.

https://github.com/clearbluejar/ghidra-python/pkgs/container/ghidra-python

I am currently building them for the following combinations: https://github.com/clearbluejar/ghidra-python/blob/54b21307125de9ee7238e3519179675b608abe51/.github/workflows/build-all-vers.yaml#L18-L21

@dc3-tsd , would you be interested in a PR for a new github workflow that would pytest the current version of pyhidra across the pyhidra supported versions of Ghidra?