create account

RE: The super easy guide to running Steemit.com on your own machine! (Using Docker) by abit

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @neoxian/the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker

· @abit ·
$7.87
>```
>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
```
👍  , , , , ,
properties (23)
authorabit
permlinkre-neoxian-the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker-20170215t215856881z
categorysteemit
json_metadata{"tags":["steemit"],"app":"steemit/0.1"}
created2017-02-15 21:59:27
last_update2017-02-15 21:59:27
depth1
children2
last_payout2017-03-19 05:10:09
cashout_time1969-12-31 23:59:59
total_payout_value5.904 HBD
curator_payout_value1.967 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length630
author_reputation141,171,499,037,785
root_title"The super easy guide to running Steemit.com on your own machine! (Using Docker)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,517,280
net_rshares33,090,026,529,727
author_curate_reward""
vote details (6)
@neoxian ·
Thanks! I'll try it.
properties (22)
authorneoxian
permlinkre-abit-re-neoxian-the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker-20170215t223853567z
categorysteemit
json_metadata{"tags":["steemit"],"app":"steemit/0.1"}
created2017-02-15 22:38:54
last_update2017-02-15 22:38:54
depth2
children0
last_payout2017-03-19 05:10:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length20
author_reputation167,518,222,673,938
root_title"The super easy guide to running Steemit.com on your own machine! (Using Docker)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,517,585
net_rshares0
@neoxian ·
$7.53
It worked brilliantly.
👍  , , ,
properties (23)
authorneoxian
permlinkre-abit-re-neoxian-the-super-easy-guide-to-running-steemit-com-on-your-own-machine-using-docker-20170215t231604364z
categorysteemit
json_metadata{"tags":["steemit"],"app":"steemit/0.1"}
created2017-02-15 23:16:03
last_update2017-02-15 23:16:03
depth2
children0
last_payout2017-03-19 05:10:09
cashout_time1969-12-31 23:59:59
total_payout_value5.645 HBD
curator_payout_value1.881 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation167,518,222,673,938
root_title"The super easy guide to running Steemit.com on your own machine! (Using Docker)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,517,854
net_rshares32,314,261,783,707
author_curate_reward""
vote details (4)