Compare commits

..

40 Commits

Author SHA1 Message Date
nolash
6429e18952 Add local docker cluster config sample file 2021-02-21 16:36:32 +01:00
nolash
36e7d53173 Plug remaning postgres leaks 2021-02-21 16:29:34 +01:00
nolash
42c441c82d Add docstrings 2021-02-21 13:52:20 +01:00
nolash
1727f75be8 Factor out sub args from traffic script 2021-02-21 11:00:24 +01:00
nolash
2b535e2f31 Factor out repeated code for most cli apps, along with classes specific to traffic script 2021-02-21 10:52:48 +01:00
nolash
93ae16b578 Short-circuit balance cache 2021-02-20 22:43:30 +01:00
nolash
5108d84635 Rehabilitate import scripts after adjustments for traffic generator 2021-02-20 21:12:46 +01:00
nolash
fdb16130a2 Do a better job of updating the create script 2021-02-20 20:28:14 +01:00
nolash
d8adcd47e1 WIP update cic-eth create script to new redis callback struct 2021-02-20 19:49:21 +01:00
nolash
8dd8db497c WIP add erc20 transfer traffic item 2021-02-20 19:17:08 +01:00
nolash
f2a0ef99ec WIP Add callback reception in traffic handler, change redis callback to same dict as http 2021-02-20 11:29:11 +01:00
nolash
e7958aaf9e Add canonical account create callback 2021-02-20 10:47:01 +01:00
nolash
7119d2e7ec Introduce traffic tasker, handling chain state retrieval 2021-02-20 09:39:28 +01:00
nolash
47b107c776 Add traffic router, redis subscription, dynamic traffic item module loading 2021-02-19 23:11:25 +01:00
nolash
2a9c74080f WIP hacking together traffic generator 2021-02-19 21:12:33 +01:00
nolash
bac4fb78ce More dependency yak shaving to change to new chainspec format 2021-02-19 15:36:49 +01:00
nolash
2c7c5ac0c4 Updte registry dependency 2021-02-19 14:40:51 +01:00
nolash
4cee277922 Updates related to chainspec changes 2021-02-19 14:01:55 +01:00
nolash
a92037e8f5 Bump registry, eth versions 2021-02-19 13:08:22 +01:00
nolash
3ea3ae6f2a WIP Fix more typos in daemons 2021-02-19 08:59:01 +01:00
nolash
8e65322462 Merge remote-tracking branch 'origin/master' into lash/import-scripts-refactor 2021-02-19 08:16:39 +01:00
nolash
4762856653 Move old cic-cache 2021-02-19 08:11:48 +01:00
nolash
8a43d67c72 Fix requirements file, add debug database flag to docker compose 2021-02-19 07:58:27 +01:00
nolash
107ae0b88e Revert session changes 2021-02-18 20:20:56 +01:00
nolash
9c687db9c0 Correct cic-types version 2021-02-18 19:59:06 +01:00
nolash
8449ff8b58 Rehabiilitate import scripts to handle sempo exports after changes 2021-02-18 16:38:09 +01:00
nolash
3431991565 Update README 2021-02-18 15:27:13 +01:00
nolash
c415a6b180 Add date of birth generation 2021-02-18 14:30:42 +01:00
nolash
3725130f82 Calculate correct content length in meta uploader, add create script 2021-02-18 14:10:59 +01:00
nolash
d3ace4cd65 WIP user generation revamp 2021-02-18 10:11:46 +01:00
nolash
00643f4cea Make import balance script run indepedently of import users commence 2021-02-18 00:20:32 +01:00
nolash
b19e8f2133 Update syncer engine 2021-02-17 12:49:13 +01:00
nolash
c99c26def4 Bump version 2021-02-17 12:01:04 +01:00
nolash
9dea78571d Merge branch 'master' into lash/import-scripts-refactor 2021-02-17 11:30:58 +01:00
nolash
8819a5d976 Add missing import scripts 2021-02-13 22:18:40 +01:00
nolash
32e578e96f Poke at 10-ish tx throttle slowing down migrations 2021-02-12 21:03:38 +01:00
nolash
08e8c58c30 Add import meta script 2021-02-12 20:40:18 +01:00
nolash
a9880c05a0 Remove dead code 2021-02-12 18:42:16 +01:00
nolash
6105703ca5 Add improved import scrips 2021-02-12 17:45:41 +01:00
nolash
1e148d28c0 Remove redundant dev folder 2021-02-12 17:40:51 +01:00
8 changed files with 18 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ from cic_notify.error import PleaseCommitFirstError
logg = logging.getLogger()
version = (0, 4, 0, 'alpha.3')
version = (0, 4, 0, 'alpha.2')
version_object = semver.VersionInfo(
major=version[0],
@@ -24,6 +24,9 @@ version_string = str(version_object)
def git_hash():
import subprocess
git_diff = subprocess.run(['git', 'diff'], capture_output=True)
if len(git_diff.stdout) > 0:
raise PleaseCommitFirstError()
git_hash = subprocess.run(['git', 'rev-parse', 'HEAD'], capture_output=True)
git_hash_brief = git_hash.stdout.decode('utf-8')[:8]
@@ -32,7 +35,7 @@ def git_hash():
try:
version_git = git_hash()
version_string += '+build.{}'.format(version_git)
version_string += '.build.{}'.format(version_git)
except FileNotFoundError:
time_string_pair = str(time.time()).split('.')
version_string += '+build.{}{:<09d}'.format(

View File

@@ -1,5 +1,5 @@
alembic~=1.4.2
celery~=4.4.7
confini~=0.3.6rc3
confini~=0.3.6a1
alembic~=1.4.2
redis~=3.5.3
semver==2.13.0

View File

@@ -46,5 +46,3 @@ RUN cd cic-ussd && \
# copy config and migration files to definitive file so they can be referenced in path definitions for running scripts
COPY cic-ussd/.config/ /usr/local/etc/cic-ussd/
COPY cic-ussd/cic_ussd/db/migrations/ /usr/local/share/cic-ussd/alembic
WORKDIR /root

View File

@@ -6,10 +6,10 @@ betterpath==0.2.2
billiard==3.6.3.0
celery==4.4.7
cffi==1.14.3
cic-eth==0.10.0a41
cic-notify==0.4.0a3
cic-eth~=0.10.0a22
cic-notify==0.3.1
click==7.1.2
confini==0.3.6rc3
confini~=0.3.6a1
cryptography==3.2.1
faker==4.17.1
iniconfig==1.1.1

0
apps/contract-migration/reset.sh Executable file → Normal file
View File

0
apps/contract-migration/wait-for-it.sh Executable file → Normal file
View File

View File

@@ -2,18 +2,18 @@ africastalking==1.2.3
alembic==1.4.2
bcrypt==3.2.0
celery==4.4.7
confini==0.3.6rc3
confini==0.3.6a1
crypto-dev-signer==0.4.13rc2
cryptography==3.2.1
ecuth==0.4.5a1
eth-accounts-index==0.0.10a10
eth-address-index==0.1.0a10
eth-accounts-index==0.0.10a7
eth-address-index==0.1.0a7
eth-tester==0.5.0b3
erc20-transfer-authorization==0.3.0a9
erc20-approval-escrow==0.3.0a5
erc20-single-shot-faucet==0.2.0a6
faker==4.17.1
http-hoba-auth==0.2.0
moolb==0.1.1.b2
moolb==0.1.0
phonenumbers==8.12.12
psycopg2==2.8.6
py-eth==0.1.1
@@ -40,8 +40,6 @@ websockets==8.1
yaml-acl==0.0.1
rlp==2.0.1
cryptocurrency-cli-tools==0.0.4
giftable-erc20-token==0.0.7b12
giftable-erc20-token==0.0.7b7
hexathon==0.0.1a3
chainlib==0.0.1a16
chainsyncer==0.0.1a10
cic-registry==0.5.3.a21
chainlib==0.0.1a12

View File

@@ -41,7 +41,7 @@ before_script:
variables:
CI_DEBUG_TRACE: "true"
IMAGE_TAG: $CI_REGISTRY_IMAGE/$APP_NAME:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
LATEST_TAG: $CI_REGISTRY_IMAGE/$APP_NAME:latest
LATEST_TAG: $CI_REGISTRY_IMAGE/$APP_NAME:$CI_COMMIT_BRANCH-latest
script:
- docker build -t $IMAGE_TAG -f $DOCKERFILE_PATH .
- docker push $IMAGE_TAG