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

Commit

Permalink
Added a symlink for the config of cloudkitty-api
Browse files Browse the repository at this point in the history
When mounting a configmap on kubernetes,
it erase the content of the directory.
That's why we need a second directory
for mounting a volume at this place and keep api_paste safe.
  • Loading branch information
aimbot31 committed Aug 6, 2019
1 parent 8169a6e commit d1041d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CloudKitty/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ RUN apt-get update \
gcc \
python3-dev \
&& pip install cloudkitty \
&& mkdir /etc/cloudkitty \
&& mkdir \
/etc/cloudkitty \
/etc/cloudkitty-config \
&& ln -sf \
/etc/cloudkitty/cloudkitty.conf \
/etc/cloudkitty-config/cloudkitty.conf \
&& apt-get purge -y \
gcc \
python3-dev \
Expand Down
3 changes: 2 additions & 1 deletion CloudKitty/processor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM python:3.7-buster

RUN pip install cloudkitty
RUN pip install cloudkitty \
&& mkdir /etc/cloudkitty

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

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

For the configuration file, you can use :

- `/etc/cloudkitty/cloudkitty.conf`
- `/etc/cloudkitty-config/cloudkitty.conf`

*If you want to deploy this application on kubernetes, the second location could be useful.*

### processor

Contains the Dockerfile for CloudKitty's processor.

0 comments on commit d1041d0

Please sign in to comment.