Docker image for bit radio

in #bitradio7 years ago

There is a new blockchain based project called bitradio. You will get paid for listening radio streams on theirs web page. So everyone is able to become a blockchain miner easily )).

More effectively you can earn BRO tokens if you hold a master node. You will earn 0.5 BRO every confirmed block (1 BRO a hour). The only problem is you have to deposit 2500.00 BRO on master node. It is currently difficult, to get BRO because ICO round is over and only one exchange - cryptodao.com has BRO tokens without life currently

Another one possibility to earn tokens for staking BRO on a constantly running wallet. Thus I chosen this option. I bought some tokens (125BRO) on the exchange. I already have server, so I just had to bring bitradio wallet to the server.

Because nowadays the docker is a very good option for this, so I wrote a script, which builds a docker image and added some scripts for managing container.

The project you can find on github https://github.com/gropox/docker-bitradio

On the target server you should install git и docker. Most likely you can install git using packet manager of your distributive. Docker you can install following these instructions over there

Clone the github repository

git clone https://github.com/gropox/docker-bitradio

enter new folder docker-bitradio. There is already some scripts and sub-folder data with empty config file for bitradio.

In docker-bitradio at first run the build.sh script, which will build an docker image containing bitradio-wallet.

./build.sh 

It takes some time depending on your server.

If container completed, you can nun start this container using this script

./run.sh

docker prints a hash of new container and starts simultaneous the bitradio-wallet in this container. You should already be able to see new files in data folder.

In order to communicate with bitradio-wallet you have to enter into container using enter.sh

./enter.sh

Now you see command line with root users of that container. All programs running in this container with root rights but it safe, because the container has own file system. Only /bitcoind is mounted as your ~/docker-bitradio/data/ folder. Bitradio-wallet puts all files in that folder and can access only this folder.

To make sure, bitradio wallet is running run this command

brad getinfo

whereby brad is a script which simple calls /usr/local/bin/Bitradiod and passes through parameters. All available bitradio commands you can get using this command brad help

So, you should get an answer from wallet like on following image. As you can see, the wallet started synchronization with bitradio network and already downloaded 21035 blocks. Bitradio network is now young and has less then 80000 blocks.

Now you can already obtain a new address of the wallet using following command.

brad getaccountaddress ropox

Whereby ropox is account. If such account is not existing, the wallet will create one and generate a new address for this account.

I transfered 125 BRO to this new address. The balance and status you can check using following commands.

brad getbalance
или
brad getinfo

That's it. Do not forget to make a backup of your wallet.

brad backupwallet wallet_staker.bck
chmod a+r /bitradio/wallet_staker.bck

chmod because the backup file created in ~/docker-bitradio/data/ order hast id of root and normally you cannot read it.

In order to leave docker container use exit.

You can start and stop container using stop.sh и start.sh. run.sh is needed only once to create and run container initially.

Now I'm waiting for first BRO tokens for staking. Weither it works? I don't know it yet.

Sort:  

Привет! Спрошу у тебя как-то подробнее... угробил кошелек радио - не синхронизируется с цепью((( Новый ставлю - пустой... Старый восстанавливаю, та же беда... Что мне надо удалить чтоб он мне заново цепь залил???
Хочешь узнать как быть эффективным на Стиме?
Cмотри этот чат #steemit_info в моем канале https://discord.gg/hd3gu6
Тебе как разрабу, возможно интересен будет Дискорд, там по инвайт ссылкам можно разных апвот ботов найти на Стиме успешно работающих!
Как коменты удачно публиковать, и посты, тоже там...
Сравни мои акки тут и там по возрату и успешности, станет яснее...

Сделай бэкап кошелька, ну и сохрани на всякий случай файл wallet.dat, все удали, запусти по новой и перепиши файл wallet.dat. В этом файле хранятся собственно ключи.

Благодарю @ropox. Попробую - расскажу!
Ты в моем дискорд-канале разобрался?
Если ленишься лазить- вот первый кусок: https://beta.chainbb.com - пости отсюда комменты и посты, их поддержит @jesta! Вырастишь быстрее и веселее!
Там еще разной полезной инфы есть чуток, но начать стоит неприменно с этого https://beta.chainbb.com!!!
Я активно раскручиваю эту группу: https://discord.gg/8KyDBUx Буду благодарен если уделишь ей внимание...
Возможно тебя тоже заинтересует вести в ней свой чат для Стим голосят - обращайся за админ правами, я открыт для новых идей и обмена опытом! (Кассается всех!)
Почему дискорд? Местные программисты написали несколько ботов с широким функционалом(апвот в том числе и статистики) работающих именно в дискорд чатах командами начинающимися с символа $... Oни тоже активно способствуют продвижению моего контента...
Все это (и не только) я размещаю в своем канале, для ознакомления и использования на благо всем русскоязычным недавно присоединившимся пользователям Стима абсолютно бескорыстно! Хотя упоминание моей доброты при случае между строк меня несомненно порадует, но не является обязательным!
Удачи на Стиме тебе и нашим ребятам!

Everyone is here :) Let's call @vadbars

Yeah, seem to be testing golos HF

Подписался тоже!
Есть такой акк, который можно использовать для теста ваших приголюг на Стиме, обращайтесь к @dimarss, если интересно! 2 цента лайк! Автоматизируем??)) Через приколюгу джесты по 17...
Я за полезные дела!

Пипец непонятно )) "приголюг", "джесты" мы псковские )) Если что пиши в телеграме, только без жаргона. Я тут еще не ориентируюсь. ))

Жаль! А я думал хочешь по 17 центов за коммент иметь))

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.031
BTC 67719.65
ETH 3791.75
USDT 1.00
SBD 3.53