From f70c8884c11688ad794e727dca67b5e24d187eb2 Mon Sep 17 00:00:00 2001 From: nusantara-self <15647296+nusantara-self@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:52:10 +0800 Subject: [PATCH] Update cortex-neurons.md --- docs/TheHive/cortex-neurons.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/TheHive/cortex-neurons.md b/docs/TheHive/cortex-neurons.md index eb5fde3..ba5d72d 100644 --- a/docs/TheHive/cortex-neurons.md +++ b/docs/TheHive/cortex-neurons.md @@ -18,10 +18,10 @@ docker build -t myneuron:latest . docker run --rm -v ${PWD}:/job myneuron:latest ``` -## Test remote existing cortex-neurons (on MacOS) +### Test remote existing cortex-neurons (on MacOS Apple Silicon) ```bash -docker run --platform=linux/amd64 -v ${PWD}:/job cortexneurons/dshield_lookup:devel +docker run --rm --platform=linux/amd64 -v ${PWD}:/job cortexneurons/dshield_lookup:devel ``` :::info @@ -58,4 +58,16 @@ Make sure to have a ./input/input.json file configured locally. If the cortex ne "pap":2, "message":"1" } +``` + +### Debug remote existing cortex-neuron from command-line + +```bash +docker run -ti --platform linux/amd64 --name=mylocalneuron --rm --entrypoint /bin/bash cortexneurons/falconsandbox:devel +``` + +Upon new changes, to create an image if needed (better build from scratch, not recommended): + +```bash +docker commit mylocalneuron mylocalneuron:latest ``` \ No newline at end of file