Compare commits
9 Commits
philip/bum
...
sohail/hel
| Author | SHA1 | Date | |
|---|---|---|---|
|
cadaa582f6
|
|||
| cb61e45e4c | |||
| e5b06b18d7 | |||
|
|
5d1a30021a | ||
|
|
ade3f4e917 | ||
| c3e924ae8f | |||
| ff4c42dc24 | |||
| b8cd7eec56 | |||
| 837e8da650 |
@@ -15,5 +15,5 @@ To get started see [./apps/contract-migration/README.md](./apps/contract-migrati
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
[https://docs.grassecon.org/cic_stack/](https://docs.grassecon.org/cic_stack/)
|
[https://docs.grassecon.org/software/](https://docs.grassecon.org/software/)
|
||||||
|
|
||||||
|
|||||||
@@ -796,18 +796,18 @@ invalid_service_code,Please dial %{valid_service_code} to access Sarafu Network,
|
|||||||
help,"CON For assistance call %{support_phone}
|
help,"CON For assistance call %{support_phone}
|
||||||
00. Back
|
00. Back
|
||||||
99. Exit","CON Kwa usaidizi piga simu %{support_phone}
|
99. Exit","CON Kwa usaidizi piga simu %{support_phone}
|
||||||
0. Rudi
|
00. Rudi
|
||||||
9. Ondoka","CON Kwa utethyo kuna simu %{support_phone}
|
99. Ondoka","CON Kwa utethyo kuna simu %{support_phone}
|
||||||
0. Itina
|
00. Itina
|
||||||
9. Ondoka","CON Kwa uteithio hora thimu %{support_phone}
|
99. Ondoka","CON Kwa uteithio hora thimu %{support_phone}
|
||||||
0. Coka
|
00. Coka
|
||||||
9. Uma","CON Kwa Kuavizwa piga simu %{support_phone}
|
99. Uma","CON Kwa Kuavizwa piga simu %{support_phone}
|
||||||
0. Uya nyuma
|
00. Uya nyuma
|
||||||
9. Uka","CON Kuom kony go simu e %{support_phone}
|
99. Uka","CON Kuom kony go simu e %{support_phone}
|
||||||
0. Dog chien
|
00. Dog chien
|
||||||
9. Wuogi","CON Qarqars simu dai%{support_phone}
|
99. Wuogi","CON Qarqars simu dai%{support_phone}
|
||||||
0. Dheebi
|
00. Dheebi
|
||||||
9. Bai"
|
99. Bai"
|
||||||
complete,"CON Your request has been sent. You will receive an SMS shortly.
|
complete,"CON Your request has been sent. You will receive an SMS shortly.
|
||||||
00. Back
|
00. Back
|
||||||
99. Exit","CON Ombi lako limetumwa. Utapokea uthibitishaji wa SMS kwa muda mfupi.
|
99. Exit","CON Ombi lako limetumwa. Utapokea uthibitishaji wa SMS kwa muda mfupi.
|
||||||
|
@@ -13,4 +13,4 @@ port =
|
|||||||
ssl =
|
ssl =
|
||||||
|
|
||||||
[system]
|
[system]
|
||||||
guardians_file = var/lib/sys/guardians.txt
|
guardians_file = cic_ussd/data/sys/guardians.txt
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ states=states/
|
|||||||
transitions=transitions/
|
transitions=transitions/
|
||||||
|
|
||||||
[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=
|
path=cic_ussd/data/locale/
|
||||||
file_builders=var/lib/sys/
|
file_builders=cic_ussd/data/sys/
|
||||||
|
|
||||||
[schema]
|
[schema]
|
||||||
file_path = data/schema
|
file_path = 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=cic_ussd/db/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 =
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
52
docker-compose.build.yml
Normal file
52
docker-compose.build.yml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
version: '3.2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
cic-cache:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-cache:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-cache
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-cache:latest
|
||||||
|
cic-eth:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-eth:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-eth
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-eth:latest
|
||||||
|
cic-meta:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-meta:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-meta
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-meta:latest
|
||||||
|
cic-notify:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-notify:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-notify
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-notify:latest
|
||||||
|
funga-eth:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/funga-eth:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-signer
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/funga-eth:latest
|
||||||
|
cic-ussd:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-ussd:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/cic-ussd
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-ussd:latest
|
||||||
|
cic-contract-bootstrap:
|
||||||
|
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-contract-bootstrap:${TAG:-latest}
|
||||||
|
build:
|
||||||
|
context: apps/contract-migration
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-ussd:latest
|
||||||
23
scripts/local-build-push.sh
Normal file
23
scripts/local-build-push.sh
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# dependencies:
|
||||||
|
# - docker-compose >= v1.25.0
|
||||||
|
# - sbot >= v1.0.0.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export DOCKER_BUILDKIT=1
|
||||||
|
export COMPOSE_DOCKER_CLI_BUILD=1
|
||||||
|
|
||||||
|
PREDICTED_TAG=$(sbot predict version -m auto)
|
||||||
|
|
||||||
|
docker-compose -f docker-compose.build.yml build --progress plain
|
||||||
|
|
||||||
|
export TAG=v$PREDICTED_TAG
|
||||||
|
|
||||||
|
docker-compose -f docker-compose.build.yml build --progress plain
|
||||||
|
docker-compose -f docker-compose.build.yml push
|
||||||
|
|
||||||
|
export TAG=latest
|
||||||
|
|
||||||
|
docker-compose -f docker-compose.build.yml push
|
||||||
Reference in New Issue
Block a user