changelog
Getting Started Template for Docker Users
Source code at src/typescript.ts
src/typescript.ts
bin/docker-run-typescript.sh
Source code at src/javascript-esm.js
src/javascript-esm.js
bin/docker-run-javascript-esm.sh
Source code at src/javascript-vanilla.js
src/javascript-vanilla.js
CommonJS will not be supported anymore because we have switched to pure ESM from Wechaty v1.0.
The above scripts(bin/docker-run-*.sh) will pass all environment variables that start with WECHATY_ from current shell to the Docker container.
bin/docker-run-*.sh
WECHATY_
All you need is just to set it under the shell before you run the bin/docker-run-*.sh.
export WECHATY_LOG=verbose
Quick & easy install Docker via:
curl -sSL https://get.docker.com | sh
Or
wget -qO- https://get.docker.com/ | sh
Get to know more about Docker at: https://www.docker.com/
BATS: HOW TO USE BATS TO TEST YOUR COMMAND LINE TOOLS
Init docker support.
Huan LI <zixia@zixia.net>
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
DOCKER-WECHATY-GETTING-STARTED
Getting Started Template for Docker Users
FEATURES
REQUIREMENTS
USAGE
Run Bot Examples
1. Run TypeScript Example
Source code at
src/typescript.ts2. Run ES Module Javascript Example
Source code at
src/javascript-esm.js3 Run CommonJS Javascript ExampleSource code atsrc/javascript-vanilla.js2. Set Environment Variables
The above scripts(
bin/docker-run-*.sh) will pass all environment variables that start withWECHATY_from current shell to the Docker container.All you need is just to set it under the shell before you run the
bin/docker-run-*.sh.DOCKER
Install Docker
Quick & easy install Docker via:
Or
Get to know more about Docker at: https://www.docker.com/
TEST
BATS: HOW TO USE BATS TO TEST YOUR COMMAND LINE TOOLS
SEE ALSO
HISTORY
main 1.0 (Nov 4, 2021)
v0.1 (Aug 14, 2018)
Init docker support.
AUTHOR
Huan LI <zixia@zixia.net>
COPYRIGHT & LICENSE