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 redis \
&& mkdir \
/etc/cloudkitty \
/etc/cloudkitty-config \
&& apt-get purge -y \
gcc \
python3-dev \
Expand Down
17 changes: 15 additions & 2 deletions CloudKitty/processor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
FROM python:3.7-buster
FROM python:3.7-slim-buster

RUN pip install cloudkitty
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
gcc \
python3-dev \
&& pip install cloudkitty PyMySQL redis \
&& mkdir \
/etc/cloudkitty \
/etc/cloudkitty-config \
&& apt-get purge -y \
gcc \
python3-dev \
&& apt-get clean -y \
&& rm -rf /var/cache/apt \
&& rm -rf /var/lib/apt/lists/*

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 these files.

### api

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