Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 1.89 KB

2018-08-14-docker-wechaty-getting-started.md

File metadata and controls

80 lines (53 loc) · 1.89 KB
title author categories tags
Docker Wechaty Getting Started
huan
tutorial
docker
news

Docker Pulls Docker Stars Docker Layers

dockeri.co

GitHub Repo: https://github.com/wechaty/docker-wechaty-getting-started

Features

  1. Wechaty is fully dockerized. So it will be very easy to be used as a MicroService.
  2. Clone the above 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 Vanilla Javascript Example

bash -x bin/docker-run-javascript-vanilla.sh

2. Run ES6 Javascript Example

bash -x bin/docker-run-javascript-es6.sh

3. Run TypeScript Example

bash -x bin/docker-run-typescript.sh

Until then, enjoy!

Docker

1. 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/

2. Use Docker Registry Mirror in China

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 the docker CN mirror at: