1 Star 0 Fork 0

胖子AK / alinode-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
lihao 提交于 2018-02-05 21:11 . add

Alinode Docker

Dockerfile for alinode.

Docker Hub

You may use this Dockerfile via Docker Hub.

The repo is here.

And the docker pull command is:

$ docker pull alinode/alinode-docker

With AgentX && Run app.js

This docker may use with AgentX together.

You should specified these environment variables:

  • APP_ID: Application ID generated by alinode dashboard.
  • APP_SECRET: Application secret value generated by alinode dashboard.
  • AGENTX_ERROR_LOG: Application error log path. Eg. /root/.logs/error.#YYYY#-#MM#-#DD#.log
# docker run  -d -p 1337:1337 -it  -e "APP_ID=xxx" -e "APP_SECRET=xxx" -v /root/src/:/web/ docker.io/alinode/alinode-docker node /web/app.js

And we recommended you bind hostname same as host mechine. Because hostname changes follows the container id. So, command is that:

# docker run  -d -p 1337:1337 -h `hostname`  -e "APP_ID=xxx" -e "APP_SECRET=xxx" -v /root/src/:/web/ docker.io/alinode/alinode-docker node /web/app.js

Contribute

You're welcome to make pull requests!

Shell
1
https://gitee.com/dokak47/alinode-docker.git
git@gitee.com:dokak47/alinode-docker.git
dokak47
alinode-docker
alinode-docker
master

搜索帮助