Open ketanio opened 4 years ago
Yes, that's what I'm doing (though I have other unrelated errors) The line in my Dockerfile is 👍
COPY mycustomtransformer.jar /opt/docker/lib
@femibyte I was looking the startup script in /opt/docker/bin
it seemed like the classpaths were hardcoded. Does it pick the custom jars?
Yeah, the way I got around that was by taking the existing mleap-spring-boot
file, modifying it to use the jars I want and renaming it to mleap-spring-boot-custom
.
Then in my Dockerfile, I have
COPY mleap-spring-boot-custom /opt/docker/bin
ENTRYPOINT ["bin/mleap-spring-boot-custom"]
CMD []
I am following mleap docs to serve inside a docker container, but i am finding it difficult to pass the leapFrame . When i apply transform it throws error of jsonParser. Can you help me which docker image tag is running smooothly? Or any suggestion for a beginner
while executing transform on airbnb example i get ( currently using 0.14-snapshot) {"timestamp":"2020-06-16T17:09:36.973+0000","status":500,"error":"Internal Server Error","message":"Illegal character '.' (code 0x2e) in base64 content","path":"/models/transform"}
i have passed format as ml.combust.mleap.json and LEAP_FRAME as frame.airbnb.json file provided in the doc. additionaly i have two more question
Need some clarity,
This is what I did:
reference.conf
After this I tried to load bundle in the spring-boot docker container and realized that the mleap-spring-boot app does not have my custom transformer class in its runtime.
Questions:
I poked around the mleap codebase and docker container and found
/opt/docker/lib
directory where all the jars are stored. Should I copy my custom transformer jar to this directory when I build my custom docker image (built from the mleap base docker image)?