-
-
Notifications
You must be signed in to change notification settings - Fork 98
TheHive and Cortex Compose scripts #2652
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
Conversation
c71d775
to
4b4ce3b
Compare
This almost works, however the container that runs the actual query (tenzir/vast-neuron) doesn't find the `input.json` in the expected place (`/job/input/input.json`). I checked that the `input.json` is correctly creatd in the cortex container with proper contents, and when the container is started an actual log message indicates that that very volume is mounted to `/job` on the neuron. ``` thehive-cortex-1 | timeout: 30 minutes thehive-cortex-1 | image : tenzir/vast-neuron thehive-cortex-1 | volume : /opt/cortex/jobs/cortex-job-yfueFYQBc4_qCE3nWixQ-7660690682055716688:/job ``` However, when logging into the neuron /job is empty. I've run out of ideas. It does seem to work for Kaans set of images, maybe some sort of permission problem.
It works when running the neuron independently, ("./vast-cortex-neuron/tests/test service") but fails when it is executed from Cortex ("Container could not be started")
9412983
to
f6be72a
Compare
It will be easier to write some high level tests and documentation once the full usecase is implemented, so I think we can merge this now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and we can successfully interact between VAST, Cortex, and TheHive.
I'm not a docker compose expert by any means, so take that approval with a grain of salt.
This is addressing multiple issues that bubbled up after #2652 - There was a `$` missing before `exit_code` - Lint issues - A transient failure in the Cortex init script due to concurrent access to a mounted volume
This is a complete revamp of the #2532 with a more stable init script.
📝 Reviewer Checklist
Review this pull request by ensuring the following items:
Todo:
replace pyvast with the new bindingsTo be done separately to close this off