GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wechaty/docker-getting-started: Getting Started Template for Docker Users

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 

Repository files navigation

DOCKER-WECHATY-GETTING-STARTED

Powered by Wechaty Docker Pulls Docker Stars Docker CI

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

Run Bot Examples

1. Run TypeScript Example

Source code at src/typescript.ts

bin/docker-run-typescript.sh

2. Run ES Module Javascript Example

Source code at src/javascript-esm.js

bin/docker-run-javascript-esm.sh

3 Run CommonJS Javascript Example

Source code at src/javascript-vanilla.js

CommonJS will not be supported anymore because we have switched to pure ESM from Wechaty v1.0.

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/

TEST

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

SEE ALSO

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

HISTORY

main 1.0 (Nov 4, 2021)

  1. Update example code to match Wechaty v1.x API
  2. Enable GitHub Actions (and remove Travis CI)

v0.1 (Aug 14, 2018)

Init docker support.

AUTHOR

Huan LI <[email protected]>

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

COPYRIGHT & LICENSE

  • Code & Docs © 2018-now Huan LI <[email protected]>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

About

Getting Started Template for Docker Users

wechaty.js.org/2018/08/14/docker-wechaty-getting-started/

Topics

chatbotdockerwechaty

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

65 stars

Watchers

2 watching

Forks

26 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.