-
First of all clone repository.
$ git clone --recursive https://github.com/absortium/deluge.git
-
Go into
usefuldirectory and copydeluge,dockeranddocker-composealiases to your alias file.zsh-~/.zsh_aliasesbash-~/.bash_aliases
-
Set environment variables.
export DELUGE_PATH='YOUR_WORK_DIRECTORY_PATH'export DEFAULT_MODE='unit'
-
Add entry to the
/etc/hosts- If you run docker containers on the
docker-machine, than check yourdocker-machineip and pass it to the/etc/hosts
$ docker-machine ip $ sudo bash -c `echo "absortium.com <ip>" >> /etc/hosts`- Otherwise set localhost
$ sudo bash -c `echo "absortium.com localhost" >> /etc/hosts` - If you run docker containers on the
-
Open new terminal and go into docker
devdirectory, if there is no such alias than you should check -Are aliases were preloaded?$ godd -
Run
postgresservice which serve as database.$ dc up -d postgres -
Migrate
m-backenddatabase.$ dc run m-ethwallet migrate -
Run
ethwallettests.$ dc run m-ethwallet test --verbosity 2 ethwallet.tests.unit
- If you use
docker-machinethan you must download project only in user directory.
m-ethwallet- main ethwallet service.w-ethwallet- ethwallet worker service (celery).frontend- frontend service.postgres- postgres service (postgres data are stored separately, even if you remove service the data would be persisted).rabbitmq- queue service.redis- redis service (needed as backend forrabbitmqtasks store).ethnode- go client docker service with turned on RPC support.
-
god- go to theDELUGE_PATHdirectory. -
godd- go to thedockerdev directory (in order to run docker service) -
gods- go to theservicesdirectory. -
gods <service>- go to the<service>project directory. -
dcinit <mode>- init start mode, default mode isDEFAULT_MODE.unit- external systems like
coinbaseandethwalletare mocked. - internal systems like
routerare mocked. - generally, only
postgresservice is required to be up in order to start tests. - celery workers are not working and code is executing in main process.
- external systems like
integration- external systems like
coinbaseare mocked. ethwalletservice might working in private net or might be mocked (it dependence).postgres,rabbitmq,celery,routerservices are required to be up in order to start tests.- celery workers are working and celery tasks are executing in another processes.
- external systems like
- (for more information please read
README.mdin thedockerdirectory)
-
dc(b| build) <service>- build service. -
dc(r| run) <service>- run service. -
drmc <regex>- delete containers that much regex expression. -
drmi <regex>- delete images that much regex expression. -
dc(l| logs) <service>- output service logs. -
di- list all images. -
dps- list all working containers. -
ideluge- init sensitive information that is needed for backend start.