Skip to content
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

seldon-core-microservice: error: unrecognized arguments: REST #2951

Closed
FarshadMovahed-REISys opened this issue Feb 12, 2021 · 1 comment
Closed
Labels
bug triage Needs to be triaged and prioritised accordingly

Comments

@FarshadMovahed-REISys
Copy link

FarshadMovahed-REISys commented Feb 12, 2021

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

  • 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>]
@FarshadMovahed-REISys FarshadMovahed-REISys added bug triage Needs to be triaged and prioritised accordingly labels Feb 12, 2021
@ukclivecox
Copy link
Contributor

Duplicate of #2896

@ukclivecox ukclivecox marked this as a duplicate of #2896 Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs to be triaged and prioritised accordingly
Projects
None yet
Development

No branches or pull requests

2 participants