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

Docker build works / run fails #1

Open
jmcparland opened this issue Apr 10, 2019 · 3 comments
Open

Docker build works / run fails #1

jmcparland opened this issue Apr 10, 2019 · 3 comments
Assignees

Comments

@jmcparland
Copy link

I've tried the instructions with Ubuntu server 18.xx and Centos 7 as a base OS (in AWS). The docker build works without a hitch, but I'm seeing the following two errors on docker run:

docker run -p 6644:8000 sms_proxy:0.0.1
Error loading shared library libpython2.7.so.1.0: No such file or directory (needed by /app/ve/bin/gunicorn)
Error relocating /app/ve/bin/gunicorn: Py_Main: symbol not found

Since I'm using your code as an intro to Docker example as well and since I've not previously used alpine linux, I'm not exactly sure how to look inside the exited container for clues. I appreciate the code example (I'll try getting it running in an ordinary vm) and am not expecting you to worry about a three-year-old example, but I'll watch in case there's a quick fix :-) Thanks!

@jmcparland
Copy link
Author

Moving package "python-dev" from the "apk --virtual" block to the block above it in the Dockerfile seems to clear the "docker run" error surrounding libpython2.7.so , allowing a clean start.

@hjhixon hjhixon self-assigned this Apr 11, 2019
@hjhixon
Copy link

hjhixon commented Apr 11, 2019

Good catch; I found in my testing that pinning alpine to 3.4 works as well. Glad to see you found a solution, I'll test your PR and we should be good to merge it.

@jmcparland
Copy link
Author

jmcparland commented Apr 11, 2019

Thanks, Harry! Use whatever solution works best, of course ~ I didn't go so far as to check what other remnants that package might throw into the container. Regardless, it's a really nice exemplar for the Flowroute API, Flask, Docker, python style, etc. ~ I'm really glad the crew shared it. Thanks again!

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