[docker] Images for full-node, delayed-node, cli-wallet and web-wallet

Started by xeroc, October 22, 2015, 01:27:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maqifrnswa

nice!
has anyone tried the dockerfile in the bitshares-2 github repo?
https://github.com/bitshares/bitshares-2/blob/bitshares/Dockerfile

looks like it's just for a witness_node, xeroc's is the whole stack
maintains an Ubuntu PPA: [url="https://launchpad.net/~showard314/+archive/ubuntu/bitshares"]https://launchpad.net/~showard314/+archive/ubuntu/bitshares[/url] [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

namjar


xeroc

It seems hub.docker.com can't build the containers due to not enough RAM .. the build process gets killed by the kernel :(
Not sure this can be fixed .. I'll investigate

//edit: no way around this via automated build .. need a machine with power and good connectivity to upload the containers afterwards ..
anyone?

xeroc


liondani

[url="https://www.steempeak.com/@liondani"]https://www.steempeak.com/@liondani[/url]

cube

ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

betax

We need a new thread, with tools, docs etc, or just stickies. In a couple of days this will disappear with other bits, like the python libraries / docs and other bits from puppies / spartako
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

betax

[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

xeroc

Hey there,

today I took the time to setup docker build files and images for the full-node, the delayed-node, the cli-wallet and the web-wallet.
Here are the docker files:
https://github.com/xeroc/bitshares-docker

Running the containers
As I have a slow data rate internet connection at home, uploading the images
may take some more time.

Thanks to mindphlux who gave me a fat machine for a day or two, I was able to
build the docker container and upload it for everyone to use.
All you need to do (after installing docker of course) is

docker run --name trusted-full-node
           -p 9090:9090 \
           bitshares/bitshares-2-trusted-full-node

If you want to run a public API server you should expose the 8090 port like
this:


docker run --name trusted-full-node
           -p 9090:9090 \
           -p 8090:8090 \
           bitshares/bitshares-2-trusted-full-node


I have added some more launch scripts to the docker github repository. The
delayed node and the cli-wallet require a trusted-node and will link to it
automatically.

Note, the web-wallet containers do contain the official build and thus are not
yet using the websocket server in the trusted-full node. Hence, the web-wallet
will not yet do what you think it does!

Build them yourself
If you are brave you can build your own images using these docker files with
git clone https://github.com/xeroc/bitshares-docker
cd bitshares-docker
docker build -t bitshares/bitshares-2-trusted-full-node bitshares-2-trusted-full-node
docker build -t bitshares/bitshares-2-delayed-node bitshares-2-delayed-node
docker build -t bitshares/bitshares-2-cli-wallet bitshares-2-cli-wallet
docker build -t bitshares/bitshares-2-webwallet bitshares-2-webwallet

or use the build.sh script

Todo
* I only need to figure out how to let the web wallet connect to the trusted node to have a full bts2 stack deployable via docker.
* The containers are currently relatively big in size .. this size can be reduced by removing the build temp files
* documentation

Have fun!

ps. I expect some more public full nodes to be reachable soonish: https://bitsharestalk.org/index.php/topic,19254.0.html