Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit cb7c8c3

Browse files
committed
Fixed a dependency and added a directory for the config
In order to have compatibility between cloudkitty and kubernetes, we need to have a repository for processing the config map. There where a problem with PyMySQL which where missing. Updated the readme to explain where to put the config
1 parent 8169a6e commit cb7c8c3

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CloudKitty/api/Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
FROM python:3.7-slim-buster
22

3-
RUN apt-get update \
3+
RUN apt-get update \
44
&& apt-get install --no-install-recommends -y \
55
apache2 \
66
libapache2-mod-wsgi-py3 \
77
gcc \
88
python3-dev \
9-
&& pip install cloudkitty \
10-
&& mkdir /etc/cloudkitty \
9+
&& pip install cloudkitty PyMySQL \
10+
&& mkdir \
11+
/etc/cloudkitty \
12+
/etc/cloudkitty-config \
1113
&& apt-get purge -y \
1214
gcc \
1315
python3-dev \

CloudKitty/processor/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM python:3.7-buster
22

3-
RUN pip install cloudkitty
3+
RUN pip install cloudkitty PyMySQL
44

55
CMD [ "cloudkitty-processor" ]

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ This repository contains the Dockerfiles for Objectif Libre's official images.
44

55
## CloudKitty
66

7+
If you wish to configure CloudKitty, the configuration files are located here :
8+
9+
- `/etc/cloudkitty/metrics.yml`
10+
- `/etc/cloudkitty/cloudkitty.conf`
11+
12+
Please, refer to the [documentation of cloudkitty](https://docs.openstack.org/cloudkitty/latest/admin/configuration/configuration.html) if you don't know how to use theses files.
13+
714
### api
815

916
Contains the Dockerfile for CloudKitty's API and its dependencies.

0 commit comments

Comments
 (0)