Refactors to accommodate new data dir location.
This commit is contained in:
parent
784829789d
commit
dbbe93acf0
@ -13,4 +13,4 @@ port =
|
|||||||
ssl =
|
ssl =
|
||||||
|
|
||||||
[system]
|
[system]
|
||||||
guardians_file = var/lib/sys/guardians.txt
|
guardians_file = cic_ussd/data/sys/guardians.txt
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[locale]
|
[locale]
|
||||||
fallback=sw
|
fallback=sw
|
||||||
path=var/lib/locale/
|
path=cic_ussd/data/locale/
|
||||||
file_builders=var/lib/sys/
|
file_builders=cic_ussd/data/sys/
|
||||||
|
|
||||||
[schema]
|
[schema]
|
||||||
file_path = /usr/local/lib/python3.8/site-packages/cic_translations/data/schema
|
file_path = /usr/local/lib/python3.8/site-packages/cic_translations/data/schema
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
file = var/lib/sys/languages.json
|
file = cic_ussd/data/sys/languages.json
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[ussd]
|
[ussd]
|
||||||
menu_file=data/ussd_menu.json
|
menu_file=cic_ussd/data/sys/ussd_menu.json
|
||||||
service_code=*483*46#,*483*061#,*384*96#
|
service_code=*483*46#,*483*061#,*384*96#
|
||||||
user =
|
user =
|
||||||
pass =
|
pass =
|
||||||
|
@ -3,12 +3,10 @@ ARG DOCKER_REGISTRY="registry.gitlab.com/grassrootseconomics"
|
|||||||
FROM $DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-e8eb2ee2
|
FROM $DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-e8eb2ee2
|
||||||
|
|
||||||
RUN apt-get install -y redis-server
|
RUN apt-get install -y redis-server
|
||||||
|
|
||||||
# create secrets directory
|
# create secrets directory
|
||||||
RUN mkdir -vp pgp/keys
|
RUN mkdir -vp pgp/keys
|
||||||
|
|
||||||
# create application directory
|
|
||||||
RUN mkdir -vp cic-ussd
|
|
||||||
RUN mkdir -vp data
|
|
||||||
|
|
||||||
ARG EXTRA_PIP_INDEX_URL=https://pip.grassrootseconomics.net
|
ARG EXTRA_PIP_INDEX_URL=https://pip.grassrootseconomics.net
|
||||||
ARG EXTRA_PIP_ARGS=""
|
ARG EXTRA_PIP_ARGS=""
|
||||||
@ -25,7 +23,8 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN python setup.py install
|
RUN python setup.py install
|
||||||
|
|
||||||
COPY cic_ussd/db/ussd_menu.json data/
|
# create local files directory
|
||||||
|
RUN mkdir -vp cic_ussd/data/locale
|
||||||
|
|
||||||
COPY docker/*.sh ./
|
COPY docker/*.sh ./
|
||||||
RUN chmod +x /root/*.sh
|
RUN chmod +x /root/*.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user