Author Topic: [docker] Images for full-node, delayed-node, cli-wallet and web-wallet  (Read 4668 times)

0 Members and 1 Guest are viewing this topic.

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
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: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline namjar

  • Full Member
  • ***
  • Posts: 51
    • View Profile
i am use OpenVZ vps,  cannot run docker, how to fix it?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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?
« Last Edit: October 22, 2015, 03:05:33 pm by xeroc »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Hmm .. Maybe I put this thing into the docs once docker.io has built them ..

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BitShares: bitcube
Easy.  Things are going to get easier with this tool.  +5%
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
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
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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
Code: [Select]
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:

Code: [Select]
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
Code: [Select]
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
« Last Edit: October 23, 2015, 07:22:24 am by xeroc »