-
Notifications
You must be signed in to change notification settings - Fork 216
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
Update Docker build to use python3 #122
base: master
Are you sure you want to change the base?
Conversation
…and updates calls to elastalert to use python3
Jira needs to be updated to work with the new elastalert by the way - see Yelp/elastalert#2437
|
Why this PR still didn't get merged? |
+1 |
This dockerfile installs python3.7, this version is not supported by elastalert yet. |
I use this dockerfile and it's installs python3.6 |
Well, I found the problem, and I can confirm that python3.7 is installed. the problem is the second Form in the multi-stage Dockerfile and the python installation in this stage (lines 27 and 32):
If you build a docker image with this sentences and run a container with the image generated, the version of python can be checked:
|
And this is my python versions from running container builded with this DockerFile
|
When you build the image used by these container?
[1] https://pkgs.alpinelinux.org/package/edge/main/x86/python3 |
@alvarolmedo thx for pointing to python version issue. I've managed with this by:
|
Great solution @Karql . I changed the second base image:
And a pair of changes more....
And I need to create node user correctly:
I don't create a PR with my fix, because I consider it a temporary solution. |
Based on the changes by @nqkdev in #117, but including needed changes to launch elastalert under Python 3 while still using Python 2 for node-gyp.