Viewing a response to: @neoxian/the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker
>``` >RUN source /root/.nvm/nvm.sh \ > && node -p "crypto.randomBytes(32).toString('base64')" > key.txt > >#RUN sed -ie "s/somelongsecretstring/$(cat key.txt)/g" steem-dev.json > >## Warning, big hack, if you can figure out how to get that sed command above to work ># let me know >RUN sed -ie 's/somelongsecretstring/KrddWYj8wPonvIpjfNvNyJiw8RfVyOfvEaeXcWeOMHI=/g' steem-dev.json >``` I guess the tricky part is that `/` is a valid character in a base64 string, so if there is a `/` is in key.txt, the `sed` command sometimes won't work. Try this: ``` RUN sed -ie "s#somelongsecretstring#$(cat key.txt)#g" steem-dev.json ```
author | abit |
---|---|
permlink | re-neoxian-the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker-20170215t215856881z |
category | steemit |
json_metadata | {"tags":["steemit"],"app":"steemit/0.1"} |
created | 2017-02-15 21:59:27 |
last_update | 2017-02-15 21:59:27 |
depth | 1 |
children | 2 |
last_payout | 2017-03-19 05:10:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 5.904 HBD |
curator_payout_value | 1.967 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 630 |
author_reputation | 141,171,499,037,785 |
root_title | "The super easy guide to running Steemit.com on your own machine! (Using Docker)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,517,280 |
net_rshares | 33,090,026,529,727 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
jamesc | 0 | 692,143,226,532 | 1% | ||
abit | 0 | 30,998,887,954,619 | 100% | ||
neoxian | 0 | 618,100,096,291 | 100% | ||
ausbitbank | 0 | 97,810,160,347 | 100% | ||
demotruk | 0 | 679,518,804,050 | 100% | ||
zedikaredirect | 0 | 3,566,287,888 | 100% |
Thanks! I'll try it.
author | neoxian |
---|---|
permlink | re-abit-re-neoxian-the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker-20170215t223853567z |
category | steemit |
json_metadata | {"tags":["steemit"],"app":"steemit/0.1"} |
created | 2017-02-15 22:38:54 |
last_update | 2017-02-15 22:38:54 |
depth | 2 |
children | 0 |
last_payout | 2017-03-19 05:10:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 20 |
author_reputation | 167,518,222,673,938 |
root_title | "The super easy guide to running Steemit.com on your own machine! (Using Docker)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,517,585 |
net_rshares | 0 |
It worked brilliantly.
author | neoxian |
---|---|
permlink | re-abit-re-neoxian-the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker-20170215t231604364z |
category | steemit |
json_metadata | {"tags":["steemit"],"app":"steemit/0.1"} |
created | 2017-02-15 23:16:03 |
last_update | 2017-02-15 23:16:03 |
depth | 2 |
children | 0 |
last_payout | 2017-03-19 05:10:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 5.645 HBD |
curator_payout_value | 1.881 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 22 |
author_reputation | 167,518,222,673,938 |
root_title | "The super easy guide to running Steemit.com on your own machine! (Using Docker)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,517,854 |
net_rshares | 32,314,261,783,707 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
abit | 0 | 30,998,887,954,619 | 100% | ||
neoxian | 0 | 618,132,095,399 | 100% | ||
demotruk | 0 | 693,675,445,801 | 100% | ||
zedikaredirect | 0 | 3,566,287,888 | 100% |