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

DLRS (v0.4.0) has incomplete serve.sh script #236

Open
poussa opened this issue Aug 29, 2019 · 1 comment
Open

DLRS (v0.4.0) has incomplete serve.sh script #236

poussa opened this issue Aug 29, 2019 · 1 comment

Comments

@poussa
Copy link

poussa commented Aug 29, 2019

When you try to run the OVMS on the container:

docker run --rm -v /opt/models/:/opt/ml:ro -p 9001:9001 -p 8001:8001 clearlinux/stacks-dlrs-mkl:v0.4.0 /workspace/scripts/serve.sh ie_serving model --model_path /opt/ml/resnet_V1_50 --model_name resnet50 --port 9001 --rest_port 8001

You get

standard_init_linux.go:211: exec user process caused "exec format error"

This is because the /workspace/scripts/serve.sh is missing the bangline (#!/bin/sh)

# start the model server

@joselamego
Copy link
Contributor

@poussa: Thanks for your report.

Please use the following workaround to run the OVMS on your container (if you aren't already using one of your own):

docker run --rm -v /opt/models/:/opt/ml:ro -p 9001:9001 -p 8001:8001 clearlinux/stacks-dlrs-mkl:v0.4.1 /bin/bash -c "source /.bashrc && /workspace/scripts/serve.sh ie_serving model --model_path /opt/ml/resnet_V1_50 --model_name resnet50 --port 9001 --rest_port 8001"

Note that this is using the image version v0.4.1, which can be obtained with

docker pull clearlinux/stacks-dlrs-mkl:v0.4.1

We will implement an appropriate fix in the next image version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants