Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadillax/alinode-docker
Dockfile for alinode.
https://github.com/xadillax/alinode-docker
Last synced: 5 days ago
JSON representation
Dockfile for alinode.
- Host: GitHub
- URL: https://github.com/xadillax/alinode-docker
- Owner: XadillaX
- License: mit
- Created: 2015-11-12T05:09:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T04:44:00.000Z (over 5 years ago)
- Last Synced: 2024-11-01T09:51:36.054Z (12 days ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 28
- Watchers: 3
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alinode Docker
Dockerfile for alinode.
## Docker Hub
You may use this Dockerfile via Docker Hub.
The repo is [here](https://hub.docker.com/r/alinode/alinode-docker/).
And the `docker pull` command is:
```sh
$ docker pull xadillax/alinode
```## With AgentX && Run app.js
This docker may use with [AgentX](https://github.com/aliyun-node/agentx) together.
You should specified these environment variables:
- **APP_ID**: Application ID generated by [alinode](http://alinode.aliyun.com/) 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````sh
# 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:
```sh
# 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!