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

Commit ed4af61

Browse files
committed
Added a symlink for the config of cloudkitty-api
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. Also updated README to explain this.
1 parent 8169a6e commit ed4af61

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

CloudKitty/api/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ RUN apt-get update \
77
gcc \
88
python3-dev \
99
&& pip install cloudkitty \
10-
&& mkdir /etc/cloudkitty \
10+
&& mkdir \
11+
/etc/cloudkitty \
12+
/etc/cloudkitty-config \
13+
&& ln -sf \
14+
/etc/cloudkitty/cloudkitty.conf \
15+
/etc/cloudkitty-config/cloudkitty.conf \
1116
&& apt-get purge -y \
1217
gcc \
1318
python3-dev \

CloudKitty/processor/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM python:3.7-buster
22

3-
RUN pip install cloudkitty
3+
RUN pip install cloudkitty \
4+
&& mkdir /etc/cloudkitty
45

56
CMD [ "cloudkitty-processor" ]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ This repository contains the Dockerfiles for Objectif Libre's official images.
88

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

11+
For the configuration file, you can use :
12+
13+
- `/etc/cloudkitty/cloudkitty.conf`
14+
- `/etc/cloudkitty-config/cloudkitty.conf`
15+
16+
*If you want to deploy this application on kubernetes, the second location could be useful.*
17+
1118
### processor
1219

1320
Contains the Dockerfile for CloudKitty's processor.

0 commit comments

Comments
 (0)