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

[BUG] Apps deployed using this Docker Image in Platform seem to ignore PATH parameter #5

Open
BryanBaird opened this issue Aug 16, 2024 · 0 comments

Comments

@BryanBaird
Copy link

The base Docker image here seems to be hard-coded to only look for the specific entrypoint.sh script in the root directory, which in turn seems to only be able to look for the start_service.sh script, also in the root directory.

This makes it very hard to use this Docker image with Flask apps stored in a different repository/directory structure. Unlike the equivalent R Shiny Docker image, which can easily be pointed at any R Shiny file/directory within a repo, deploying a service in Platform with this image will give error messages like:
./entrypoint.sh: line 7: ./start_service.sh: No such file or directory
even when there is a start_service.sh at the specified path.

Including a start_service.sh file in the root directory of the repository instead gives this error:
./entrypoint.sh: line 7: ./start_service.sh: Permission denied

Note that the error messages appear to be the same no matter what value is given for the PATH parameter in the Platform Service interface -- it says "No such file" if the file is not in the root directory, and "Permission denied" if it is.

Impact

This makes it very hard to create custom or lightweight Flask applications to try and take advantage of this service template in Platform. It would be preferable to have something much more like the R Shiny approach, where there is a template app you can work off of, or you can just use code from whatever repository you like in GitHub, so long as the PATH points to where to find some initialization script.

Possible cause

It looks like maybe something about the APP_DIR is being hard-coded instead of passed as an environmental variable from the Platform Service.

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

1 participant