You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
When I create grafana configuration json with microservices-demo/graphs/Dockerfile,
I couldn't build and run cause of several reasons like:
pip are not support python:3.4 anymore
taka@taka-master:~/swimmy-project/microservices-demo/graphs$ sudo docker build -t takahyon/grafanalib .
Sending build context to Docker daemon 34.82kB
Step 1/8 : FROM python:3.4-alpine
3.4-alpine: Pulling from library/python
~~~ ~~~ ellipsis ~~~ ~~~
Step 5/8 : RUN curl https://bootstrap.pypa.io/get-pip.py | python
---> Running in e7919ffa6f5d
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2509k 100 2509k 0 0 19.1M 0 --:--:-- --:--:-- --:--:-- 19.1M
ERROR: This script does not work on Python 3.4 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.4/get-pip.py instead.
The command'/bin/sh -c curl https://bootstrap.pypa.io/get-pip.py | python' returned a non-zero cod
FROM python:3.4-alpine
MAINTAINER Container Solutions info@container-solutions.com
after fix this probrem, I can build container with Dockerfile.
-Can't generate grafana config file cause of library:grafanalib has bug at version which selected in Dockerfile
I couldn't build and run cause of several reasons like:
after fix this probrem, I can build container with Dockerfile.
-Can't generate grafana config file cause of library:grafanalib has bug at version which selected in Dockerfile
result
I really don't know why python interpriter recognized
attr.ib
asattrib
, but any way I fixed this probrem by changing Dockerfile:15from
to
Everytime use command annouced in graphs/readme.md
sudo docker build -t {dockerusername}/grafanalib .
sudo docker run --rm -it -v ${PWD}:/opt/code {dockerusername}/grafanalib /bin/sh -c 'ls /opt/code/*.dashboard.py | parallel generate-dashboard -o {.}.json {}'
I will create PR in few minutes, check it out please.
Takamasa
The text was updated successfully, but these errors were encountered: