-
Notifications
You must be signed in to change notification settings - Fork 834
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
If building a python image from a folder, which is also a git-folder build silently fails #452
Comments
Interesting. Can you start the created image in Docker and run with "bash" and see what files are available in the /microservice folder? I assume the Model.py is not there for some reason. |
Correct. example of running
While removing the
|
@NegatioN I can reproduce this, if you have files in a git repository that are not commited yet, they will not be copied to the image, this is because s2i internally uses |
Interesting! Thanks for the clarification. A bit too magical for my taste, but as you say it is because of |
There seems to be a bug where if you call
s2i build $PATH seldonio/seldon-core-s2i-python3 $NAME
in a folder which is also a git-directory, it defaults to treating it as a git-directory, and is somehow unable to load in the files/model in it.It does output a
Build completed successfully
at the end, but starting the model will crash with:as far as I can see, this bug occurs for all model-complexities on my macbook.
Example outputs with and without
.git
-folder inside the target folder:Running
s2i build $(pwd) -e MODEL_NAME=Model -e API_TYPE=REST -e SERVICE_TYPE=MODEL -e PERSISTENCE=0 seldonio/seldon-core-s2i-python3:0.5-SNAPSHOT minimalmodel:0.1 --loglevel 5
in a folder without.git
in it we get this log-output:But running
s2i build $(pwd) -e MODEL_NAME=Model -e API_TYPE=REST -e SERVICE_TYPE=MODEL -e PERSISTENCE=0 seldonio/seldon-core-s2i-python3:0.5-SNAPSHOT minimalmodel:0.1 --loglevel 5
in a folder with.git
in it, we get this:I haven't tested what's supposed to happen in the case of a real git repo being targeted externally/locally, but right now it seems to struggle a bit at least.
If there's anything more I can help with, just holler. :)
My test-model,
Model.py
:The text was updated successfully, but these errors were encountered: