canonical / prometheus-openstack-exporter

OpenStack exporter for the prometheus monitoring system
GNU General Public License v3.0
128 stars 113 forks source link

Add Dockerfile #55

Closed devrandom0 closed 5 years ago

devrandom0 commented 6 years ago

Add Dockerfile, so you can build the image

alistarle commented 5 years ago

Hi, I test your pull request and it does not work, your container say :

Traceback (most recent call last): File "/prometheus-openstack-exporter", line 48, in <module> import swift.common.utils ImportError: No module named swift.common.utils

It is due to the line 48 of the main python file:

import swift.common.utils

But installing swift (pip install swift) will require liberasurecode-dev package, which is not available on alpine, so you container cannot work

digitalrane commented 5 years ago

Closing this as the author has opened #76