把 conductor 封装进 docker
今天才发现,自从上次重装服务器后,一直忘记恢复 Steem
见证人的喂价程序了。之前一直使用的是 @furion 开发的 conductor,并且之前没有用 Dockerfile
封装成镜像,而是直接在 ubuntu:16.04
的镜像上启动容器,添加的命令。这次就直接做成镜像方便以后使用。
镜像文件
- 你可以自己编译,
Dockerfile
如下:
FROM alpine:3.6
RUN apk add --no-cache python3 python3-dev gcc git musl-dev libffi-dev openssl-dev \
&& pip3 install -U git+git://github.com/Netherdrake/steem-python \
&& pip3 install -U git+https://github.com/Netherdrake/conductor \
&& apk del git gcc musl-dev libffi-dev python3-dev
ENV UNLOCK=123456
CMD ["conductor"]
- 也可以直接用我封装好的,
docker pull ety001/steem-conductor
。
使用方法
- 添加 active_key 。
docker run -it \
--rm \
-v ~/.local/share/steem:/root ety001/steem-conductor /bin/ash
执行后,进入容器,再执行
steempy addkey
输入 active key
后就可以把你要操作的用户加入到本地数据库里了,数据库文件最终会存储在你宿主机的 ~/.local/share/steem/.local/share/steem
位置。添加好以后,执行 exit
退出容器环境即可,效果如下图:
- 初始化
conductor
docker run -it \
--rm \
-v ~/.local/share/steem:/root \
ety001/steem-conductor conductor init
- 测试喂价程序
docker run -it \
--rm \
-v ~/.local/share/steem:/root \
ety001/steem-conductor conductor feed
可以工作
- 启动喂价容器
docker run -itd \
--name steem-feed \
-v ~/.local/share/steem:/root \
--restart always \
ety001/steem-conductor conductor feed
完工!以后再部署喂价程序,两行命令就搞定了。
欢迎使用 SteemMention 获取最新的 Steem 回复提醒。
欢迎使用 SteemEditor 来编写文章,最好用的 Steem 编辑器,没有之一!!!
感谢你的阅读,我是中文区见证人之一,欢迎通过 SteemConnect 来给我投票,或者打开 https://steemit.com/~witnesses/ 页面,输入 ety001 进行投票。
中文区的见证人目前有:
支持一下他们(按字母顺序),一人可以有30票:
Thank you for reading. I'm a witness. I would really appreciate your witness vote! You can vote by SteemConnect. Or open https://steemit.com/~witnesses page, input ety001 to vote.
This article is powered by SteemEditor .
But the end of all things has drawn near. Therefore be sober-minded and be sober unto prayers.(1 Peter 4:7)
Question from the Bible, What is a Proof of God's Existence
Watch the Video below to know the Answer...
(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)
Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #SteemPower. It's our little way to Thank you, our beloved friend.
Check our Discord Chat
Join our Official Community: https://steemit.com/created/hive-182074