create account

[Piston] and [Piston.web] Dockerized ! by cryptomental

View this thread on: hive.blogpeakd.comecency.com
· @cryptomental ·
$8.03
[Piston] and [Piston.web] Dockerized !
This is for everyone that finds the 'Swiss army knife for STEEM' Piston project useful.
I created and deployed Docker images on Docker Hub for Piston and Piston.web Alpha version.

# Now you can run [Piston] and [Piston.web] Alpha inside Docker container.

This solution has several advantages: now you can run Piston and Piston.web alpha on your Mac/ Ubuntu/Fedora/Gentoo/Windows using a simple 'docker run' command. Piston and its dependencies will not pollute your OS as everything sits inside the Docker container.

## [Piston]

### Pulling the image from Docker Hub
```
$ docker pull cryptomental/steem-piston
latest: Pulling from cryptomental/steem-piston
...
Digest: sha256:c1cadfef0fd92ca5edd537464f727cbd47406d59f08bf6431c0f413e850161d4
Status: Downloaded newer image for cryptomental/steem-piston:latest
```

### Running the image
```
$ docker run -it cryptomental/steem-piston
```

You should end up in Docker container shell with Piston support and be able to execute Piston commands:

```
$ piston read @xeroc/piston-cli-quickstart
```

If everything goes well you should see Piston quickstart message:

http://i.imgsafe.org/2f610ec3e9.png

## [Piston.web] Alpha

### Pulling the image from Docker Hub

```
$ docker pull cryptomental/steem-piston-web
latest: Pulling from cryptomental/steem-piston-web
...
Digest: sha256:a65d7cfcbe79826bbf2b20420c74515850c92300488d1a75d0a35347750140b3
Status: Downloaded newer image for cryptomental/steem-piston-web:latest
```

### Running the image

```
$ docker run --net=host -it cryptomental/steem-piston-web
```

You should end up in Docker container shell with Piston.web Alpha support and be able to execute start Piston.web:

```
piston@cryptomental-lin:~$ piston web
Please provide a password for the new wallet
Passphrase: 
You have chosen an empty password! We assume you understand the risks!
```

Now open your web browser and navigate to http://127.0.0.1:5054
You should be able to access [Piston.web] interface!

http://i.imgsafe.org/2f7b4b5d48.png


I hope you enjoy my contribution and I suspect this will spread the work about Piston.web and help to alpha test it. I will be maintaining the [Piston.web] Docker image until it is merged to master branch and becomes an official part of Piston.

Dockerfile GitHub repositories are here: 

https://github.com/cryptomental/docker-steem-piston
https://github.com/cryptomental/docker-steem-piston-web

Let me know if you are curious how I created the images, set up Docker Hub and connected it to GitHub. I will then describe the procedure in my next post!

Cheers!

P.S. This is my day 3 of Steem lean start-up 90 day challenge. I am still reading [Mastering Bitcoin](https://github.com/bitcoinbook/bitcoinbook) book and my head is turning from 4:3 to 16:9.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorcryptomental
permlinkpiston-and-piston-web-dockerized
categorysteem
json_metadata{"tags":["steem","learntocode","docker","piston"],"users":["xeroc"],"image":["http://i.imgsafe.org/2f610ec3e9.png"]}
created2016-08-04 08:15:09
last_update2016-08-04 08:15:09
depth0
children3
last_payout2016-09-03 21:42:30
cashout_time1969-12-31 23:59:59
total_payout_value7.275 HBD
curator_payout_value0.754 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,768
author_reputation6,756,831,217,523
root_title"[Piston] and [Piston.web] Dockerized !"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id597,219
net_rshares3,978,846,508,882
author_curate_reward""
vote details (53)
@abramjs ·
Hi @cryptomental great job,

*"Let me know if you are curious how I created the images, set up Docker Hub and connected it to GitHub. I will then describe the procedure in my next post!"*

Ok I'm very curious. 
Could you please continue your post?
best
properties (22)
authorabramjs
permlinkre-cryptomental-piston-and-piston-web-dockerized-20170713t112520672z
categorysteem
json_metadata{"tags":["steem"],"users":["cryptomental"],"app":"steemit/0.1"}
created2017-07-13 11:25:21
last_update2017-07-13 11:25:21
depth1
children0
last_payout2017-07-20 11:25:21
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_length252
author_reputation5,140,841,678,300
root_title"[Piston] and [Piston.web] Dockerized !"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,329,644
net_rshares0
@xeroc ·
This is very cool!!
Your code reminds me that I need to figure out how to distribute the JS/CSS libraries used ..
properties (22)
authorxeroc
permlinkre-cryptomental-piston-and-piston-web-dockerized-20160804t082101391z
categorysteem
json_metadata{"tags":["steem"]}
created2016-08-04 08:21:00
last_update2016-08-04 08:21:00
depth1
children1
last_payout2016-09-03 21:42:30
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_length113
author_reputation118,819,064,085,695
root_title"[Piston] and [Piston.web] Dockerized !"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id597,263
net_rshares0
@cryptomental ·
Thanks! I used npm and bower to install missing dist/, but I guess you can simply add it to the current develop branch. I will remove it from the Dockerfile afterwards.
properties (22)
authorcryptomental
permlinkre-xeroc-re-cryptomental-piston-and-piston-web-dockerized-20160804t082500278z
categorysteem
json_metadata{"tags":["steem"]}
created2016-08-04 08:25:00
last_update2016-08-04 08:25:00
depth2
children0
last_payout2016-09-03 21:42:30
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_length168
author_reputation6,756,831,217,523
root_title"[Piston] and [Piston.web] Dockerized !"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id597,304
net_rshares0