basic doichain docker images in different branches
872
git clone https://github.com/Doichain/docker.git doichain-docker; cd doichain-docker
run a testnet node make testnet-[my-doichain] HTTP_PORT=81 PORT=18338 RPC_PORT=18339
run a testnet network with alice and bob make test_testnet
run a regtest node run make regtest-[my-doichain] HTTP_PORT=81 PORT=18338 RPC_PORT=18339
run a regtest network wiht aliceand bob ```maek test_regtest``
run docker attach testnet-[my-doichain] in order to connect to your docker container
run inside the docker container: tail -f /home/doichain/.doichain/testnet/debug.log in order to watch blockchain download
run doichain-cli getnewaddress and send your testnet address to [email protected] with subject "send me money"
git clone https://github.com/Doichain/docker.git docker-doichaincd docker-doichain; docker build -t mydocker/doichain:latest .replace mydocker/doichain:latestwith doichain/dapp:latest
Install docker run -it --rm -e DAPP_SEND='true' -p 3000:3000 mydocker/doichain:latest
Get auth token with: curl -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"password"}' http://localhost:3000/api/v1/login
Output should be something like:
{
"status": "success",
"data": {
"authToken": "Y1z8vzJMo1qqLjr1pxZV8m0vKESSUxmRvbEBLAe8FV3",
"userId": "a7Rzs7KdNmGwj64Eq"
}
Give your Send - dAPP some funding: (during alpha test, please send your doichain address to [email protected])
DOI-Request
Take the authToken and userId from above and paste it into the appropriate header fields below.
curl -X POST -H 'X-User-Id: a7Rzs7KdNmGwj64Eq' -H 'X-Auth-Token: Y1z8vzJMo1qqLjr1pxZV8m0vKESSUxmRvbEBLAe8FV3' -i 'http://SEND_DAPP_HOST:3000/api/v1/opt-in?recipient_mail=<[email protected]>&[email protected]'
Output should be:
```
{
"status": "success",
"data": {
"message": "Opt-In added. ID: SyXPehQz6utWnacRa"
}
```
Install docker run --name=doichain-<your-host> --hostname=doichain-<your-host> -it --rm -e DAPP_CONFIRM='true' -e DAPP_VERIFY='true' -e DAPP_SEND='true' -e RPC_USER='admin' -e RPC_PASSWORD='<your-password>' -e RPC_HOST=localhost -e DAPP_HOST=<dAppHostFromTheInternet:Port> -e DAPP_SMTP_HOST=<smtp-host> -e DAPP_SMTP_USER=<smtp-username> -e DAPP_SMTP_PASS=<smtp-password> -e DAPP_SMTP_PORT=25 -p 3000:3000 -p 8338:8338 -v doichain.org:/home/doichain/data doichain/dapp:latest
Update the DNS of your mail domain(s) :
docker ps and docker attach <your-cointainer>doichain-cli listaccountsdoichain-cli getaccountaddress "" or use:doichain-cli getaddressesbyaccount ""pubkey from doichain-cli validateaddress <your-address>doichain-opt-in-provider:<your-email-domain e.g. doichain.org>doichain-opt-in-key:<your pubkey from above> -e CONFIRM_ADDRESS=<your-address> (or modify `/home/doichain/data/dapp/settings.json ``) which is the address of you found under 2.3check if your blockchain receive blocks with: doichain-cli getblockcount
check your balance with doichain-cli getbalance (send some coins with doichain-cli sendtoaddress )
docker run --name=doichain-<your-host> --hostname=doichain-<your-host> -it --rm -e DAPP_CONFIRM='true' -e DAPP_VERIFY='true' -e DAPP_SEND='true' -e RPC_USER='admin' -e RPC_PASSWORD='<rpc-password>' -e RPC_HOST=localhost -e DAPP_HOST=<dAppHostFromTheInternet:Port> -e DAPP_SMTP_HOST=<smtp-host> -e DAPP_SMTP_USER=<smtp-username> -e DAPP_SMTP_PASS=<smtp-password> -e DAPP_SMTP_PORT=25 -p 3000:3000 -p 8338:8338 -v doichain.org:/home/doichain/data doichain/dapp:latestContent type
Image
Digest
Size
1.2 GB
Last updated
almost 8 years ago
docker pull doichain/docker