Add cic aux to dockerfile as module
This commit is contained in:
parent
c90b6196e6
commit
53519cff7a
@ -46,7 +46,7 @@ def get_adjusted_balance(self, token_symbol, amount, timestamp):
|
|||||||
|
|
||||||
|
|
||||||
def aux_setup(rpc, config, sender_address=ZERO_ADDRESS):
|
def aux_setup(rpc, config, sender_address=ZERO_ADDRESS):
|
||||||
chain_spec_str = config.get('CIC_CHAIN_SPEC')
|
chain_spec_str = config.get('CHAIN_SPEC')
|
||||||
chain_spec = ChainSpec.from_chain_str(chain_spec_str)
|
chain_spec = ChainSpec.from_chain_str(chain_spec_str)
|
||||||
token_symbol = config.get('CIC_DEFAULT_TOKEN_SYMBOL')
|
token_symbol = config.get('CIC_DEFAULT_TOKEN_SYMBOL')
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
celery==4.4.7
|
celery==4.4.7
|
||||||
erc20-demurrage-token~=0.0.2a3
|
erc20-demurrage-token~=0.0.3a1
|
||||||
cic-eth-registry~=0.5.6a1
|
cic-eth-registry~=0.5.8a1
|
||||||
chainlib~=0.0.5a1
|
chainlib~=0.0.7a1
|
||||||
cic_eth~=0.12.0a2
|
cic_eth~=0.12.2a4
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = cic-eth-aux-erc20-demurrage-token
|
name = cic-eth-aux-erc20-demurrage-token
|
||||||
version = 0.0.2a4
|
version = 0.0.2a6
|
||||||
description = cic-eth tasks supporting erc20 demurrage token
|
description = cic-eth tasks supporting erc20 demurrage token
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
@ -5,8 +5,7 @@ pytest-cov==2.10.1
|
|||||||
eth-tester==0.5.0b3
|
eth-tester==0.5.0b3
|
||||||
py-evm==0.3.0a20
|
py-evm==0.3.0a20
|
||||||
SQLAlchemy==1.3.20
|
SQLAlchemy==1.3.20
|
||||||
cic-eth~=0.12.0a1
|
|
||||||
liveness~=0.0.1a7
|
liveness~=0.0.1a7
|
||||||
eth-accounts-index==0.0.12a1
|
eth-accounts-index==0.1.1a1
|
||||||
eth-contract-registry==0.5.6a1
|
eth-contract-registry==0.5.8a1
|
||||||
eth-address-index==0.1.2a1
|
eth-address-index==0.2.1a1
|
||||||
|
10
apps/cic-eth/config/database.ini
Normal file
10
apps/cic-eth/config/database.ini
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[database]
|
||||||
|
NAME=cic_eth
|
||||||
|
USER=postgres
|
||||||
|
PASSWORD=tralala
|
||||||
|
HOST=localhost
|
||||||
|
PORT=63432
|
||||||
|
ENGINE=postgresql
|
||||||
|
DRIVER=psycopg2
|
||||||
|
POOL_SIZE=50
|
||||||
|
DEBUG=0
|
@ -27,6 +27,12 @@ RUN python setup.py install
|
|||||||
|
|
||||||
ENV PYTHONPATH .
|
ENV PYTHONPATH .
|
||||||
|
|
||||||
|
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
|
||||||
|
pip install --index-url https://pypi.org/simple \
|
||||||
|
--extra-index-url $GITLAB_PYTHON_REGISTRY \
|
||||||
|
--extra-index-url $EXTRA_INDEX_URL \
|
||||||
|
cic-eth-aux-erc20-demurrage-token~=0.0.2a6
|
||||||
|
|
||||||
COPY docker/entrypoints/* ./
|
COPY docker/entrypoints/* ./
|
||||||
RUN chmod 755 *.sh
|
RUN chmod 755 *.sh
|
||||||
|
|
||||||
|
@ -6,5 +6,5 @@ eth-accounts-index>=0.0.14a1,<0.1.0
|
|||||||
cic-eth-registry>=0.5.8a1,<0.6.0
|
cic-eth-registry>=0.5.8a1,<0.6.0
|
||||||
erc20-faucet>=0.2.4a1,<0.3.0
|
erc20-faucet>=0.2.4a1,<0.3.0
|
||||||
erc20-transfer-authorization>=0.3.4a1,<0.4.0
|
erc20-transfer-authorization>=0.3.4a1,<0.4.0
|
||||||
sarafu-faucet>=0.0.5a3,<0.1.0
|
sarafu-faucet>=0.0.5a5,<0.1.0
|
||||||
chainlib-eth>=0.0.7a1,<0.1.0
|
chainlib-eth>=0.0.7a1,<0.1.0
|
||||||
|
@ -255,7 +255,6 @@ services:
|
|||||||
ETH_GAS_PROVIDER_ADDRESS: $DEV_ETH_ACCOUNT_GAS_PROVIDER
|
ETH_GAS_PROVIDER_ADDRESS: $DEV_ETH_ACCOUNT_GAS_PROVIDER
|
||||||
ETH_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
ETH_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
||||||
RPC_HTTP_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
RPC_HTTP_PROVIDER: ${ETH_PROVIDER:-http://eth:8545}
|
||||||
ETH_ABI_DIR: ${ETH_ABI_DIR:-/usr/local/share/cic/solidity/abi}
|
|
||||||
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
||||||
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
||||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-tralala}
|
||||||
|
Loading…
Reference in New Issue
Block a user