Okay so for CAD, I created a simple tutorial, mostly for myself, as I wanna go to sleep soon, and might forget what to do
This might be not optimal, or obsolete, I did not find another FreeCAD's docker image
EDIT: I have found a newer FreeCAD image, though it cointain GUI as well, thus works really weird without X server 
-
Pull FreeCAD's docker image (maybe we would need to create an new FreeCAD's image, as this one seems to be pretty old FreeCAD wiki
-
run it in CAD
folder:
docker run --rm -it -v ${PWD}:/home/CAD amrit3701/freecad-cli:latest python3.8
- Now we are in docker's image Python interpreter
Let's assume that we do have this tree as I mentioned in previous post:
We are choosing first one from 3D_printed
folder (ofc in the future we would iterate over files in given directory)
>>> doc = FreeCAD.open(os.path.join("3D_printed", os.listdir("3D_printed")[0]))
We find body
object which (I hope) will be on 1st place:
>>> doc.findObjects()[0].Shape.exportStep(f'{doc.Name}.step')
Voila! We do have our STEP file