Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CloudKitty/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM python:3.7-slim-buster

RUN apt-get update \
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
apache2 \
libapache2-mod-wsgi-py3 \
gcc \
python3-dev \
&& pip install cloudkitty \
&& mkdir /etc/cloudkitty \
&& pip install cloudkitty PyMySQL \
&& mkdir \
/etc/cloudkitty \
/etc/cloudkitty-config \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply /config ? would be simpler to use

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a huge fan of just /config, i don't want to break too many habits when switching from ck −> ck on docker.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't switch from pure ck to ck on docker, you switch from one automated deployment method (OSA, kolla-ansible, anything). You rarely directly edit /etc/cloudkitty/config_x. And even if you want to edit stuff in /etc/cloudkitty, there are symbolic links now

&& apt-get purge -y \
gcc \
python3-dev \
Expand Down
2 changes: 1 addition & 1 deletion CloudKitty/processor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3.7-buster

RUN pip install cloudkitty
RUN pip install cloudkitty PyMySQL

CMD [ "cloudkitty-processor" ]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ This repository contains the Dockerfiles for Objectif Libre's official images.

## CloudKitty

If you wish to configure CloudKitty, the configuration files are located here :

- `/etc/cloudkitty/metrics.yml`
- `/etc/cloudkitty/cloudkitty.conf`

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.

### api

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