worker: pin Jython-era Ghidra (11.2.1) for headless .py post-script
Ghidra 11.4+/12.x dropped the bundled Jython, so the .py extractor fails headless with "Ghidra was not started with PyGhidra. Python is not available" — analysis succeeds but the post-script never runs, so no snapshot is produced. Default GHIDRA_URL now points at 11.2.1 (Jython); README documents the constraint and the PyGhidra path for staying on 12.x. Keeps the local Dockerfile fixes (pip upgrade, non-editable install). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -9,9 +9,8 @@ COPY ams ./ams
|
||||
COPY ghidra_scripts ./ghidra_scripts
|
||||
COPY snapshots ./snapshots
|
||||
|
||||
# Editable install keeps ams + ghidra_scripts co-located (the worker resolves the script
|
||||
# path relative to the package). The API needs the queue client too, to enqueue jobs.
|
||||
RUN pip install --no-cache-dir -e ".[api]" rq redis "psycopg[binary]>=3.1"
|
||||
# The API needs the queue client too, to enqueue jobs.
|
||||
RUN pip install --no-cache-dir ".[api]" rq redis "psycopg[binary]>=3.1"
|
||||
|
||||
ENV AMS_UPLOAD_DIR=/data/uploads
|
||||
EXPOSE 8000
|
||||
|
||||
Reference in New Issue
Block a user