Getting Started Template for Docker Users
Switch branches/tags
Nothing to show
Clone or download

README.md

DOCKER-WECHATY-GETTING-STARTED

Powered by Wechaty Docker Pulls Docker Stars Docker Layers Build Status

dockeri.co

Getting Started Template for Docker Users

FEATURES

  1. Wechaty is fully dockerized. So it will be very easy to be used as a MicroService.
  2. Clone this repository, then you will be able to use Docker to run Wechaty with ZERO configuration.

REQUIREMENTS

  1. Docker
  2. Global Internet Connection

USAGE

1. Run Bot Examples

1.1 Run Vanilla Javascript Example

Source code at src/javascript-vanilla.js

bin/docker-run-javascript-vanilla.sh

1.2. Run ES6 Javascript Example

Source code at src/javascript-es6.js

bin/docker-run-javascript-es6.sh

1.3 Run TypeScript Example

Source code at src/typescript.ts

bin/docker-run-typescript.sh

2. Set Environment Variables

The above scripts(bin/docker-run-*.sh) will pass all environment variables that start with WECHATY_ 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.

export WECHATY_LOG=verbose

DOCKER

Install Docker

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/

Use Docker Registry China Mirror

Thanks Docker, there's a official registry mirror in China, and you can use it by adding registry.docker-cn.com/ in front of the image name:

- docker pull zixia/wechaty
+ docker pull registry.docker-cn.com/zixia/wechaty

Learn more about CN mirror:

TEST

BATS: HOW TO USE BATS TO TEST YOUR COMMAND LINE TOOLS

SEE ALSO

  1. Wechaty Getting Started: https://github.com/Chatie/wechaty-getting-started
  2. Hero Wechaty Getting Started: https://github.com/Chatie/heroku-wechaty-getting-started

AUTHOR

Huan LI <zixia@zixia.net>

profile for zixia on Stack Exchange, a network of free, community-driven Q&A sites

COPYRIGHT & LICENSE

  • Code & Docs © 2018 Huan LI <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons