You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed this post and I built a Docker image using the Dockerfile (see the Appendix) and executed a python code using the image to the get predictions from a machine learning model. But, I got the following error. All the files can be found here. How can I provide "REST" as an API type argument with the seldon-core-microservice command in Dockerfile?
Images of your model: [Output of: kubectl get seldondeployment -n <yourmodelnamespace> <seldondepname> -o yaml | grep image: where <yourmodelnamespace>]
Logs of your model: [You can get the logs of your model by running kubectl logs -n <yourmodelnamespace> <seldonpodname> <container>]
The text was updated successfully, but these errors were encountered:
Describe the bug
I followed this post and I built a Docker image using the Dockerfile (see the Appendix) and executed a python code using the image to the get predictions from a machine learning model. But, I got the following error. All the files can be found here. How can I provide "REST" as an API type argument with the seldon-core-microservice command in Dockerfile?
seldon-core-microservice: error: unrecognized arguments: [REST]
Appendix:
**** Dockerfile ****
`
FROM python:3.7-slim
COPY . /app
WORKDIR /app
#RUN pip install -r requirements.txt
RUN pip install sklearn seldon-core
EXPOSE 5000
ENV MODEL_NAME Model
ENV API_TYPE REST
ENV SERVICE_TYPE MODEL
ENV PERSISTENCE 0
CMD exec seldon-core-microservice ${MODEL_NAME} ${API_TYPE} --service-type ${SERVICE_TYPE} --persistence $PERSISTENCE
`
To reproduce
docker build -t seldon-app .
docker run -p 5001:5000 -it seldon-app
Expected behaviour
Environment
I ran the scripts locally on macOS Catalina
Model Details
kubectl get seldondeployment -n <yourmodelnamespace> <seldondepname> -o yaml | grep image:
where<yourmodelnamespace>
]kubectl logs -n <yourmodelnamespace> <seldonpodname> <container>
]The text was updated successfully, but these errors were encountered: