Sign inSign up

seancheung/wxdevtool

By seancheung

•Updated about 7 years ago

Wechat Web Devtool in Docker

Image
0

1.4K

seancheung/wxdevtool repository overview

⁠wxdevtool

WeChat WebDevTool in Docker(With LXDE)

⁠Run

docker run -d --name wxdevtool -p 8080:80 -v /path/to/projects:/projects seancheung/wxdevtool:latest

⁠Commands

docker exec -t wxdevtool wxdevtool help

# forwar built-in commands
docker exec -t wxdevtool wxdevtool exec [..args]
# login
docker exec -t wxdevtool wxdevtool exec --login

See Reference⁠

⁠HTPP Service

The IDE HTTP service is exposed at port 9000.

# mapping container port 9000 to local port 8083
docker run -d --name wxdevtool -p 8083:9000 -p 8080:80 -v /path/to/projects:/projects seancheung/wxdevtool:latest

# open project
curl localhost:8083/open?projectpath=path_to_project

See Reference⁠

⁠Tags

TagVersion
latest1.02.1909111
rc1.02.1909111
1.021.02.1909111
1.02-rc1.02.1909111
19091111.02.1909111
1909111-rc1.02.1909111
19020101.02.1902010
1902010-rc1.02.1902010
⁠RC Tags

rc tags are automated images which are not configured yet. To config manullay:

  1. Pull an RC image
docker pull seancheung/wxdevtool:1.02-rc
  1. Run
docker run -d --name wxdevtool-rc -p 8080:80 seancheung/wxdevtool:1.02-rc
  1. Config Wine

Open Browser at _http://localhost:8080⁠ wait until noVNC is up. Then run

docker exec -t wxdevtool-rc winecfg

Follow wine's instructions in UI. The attached shell will automatically quit when done.

When being prompted by Wine, cancel all installation suggestions.

  1. Config wxdevtool to enable IDE service port
docker exec -t wxdevtool-rc wxdevtool start

Open Browser at http://localhost:8080⁠, Open Wechat WebDevTool's settings and enable IDE service port. See Referece⁠

  1. Restart container
docker restart wxdevtool-rc
⁠Custom build Args

WXURL

https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki⁠

Always fetch the latest

NODE_URL

https://nodejs.org/dist/v${version}/node-v${version}-linux-x64.tar.gz⁠

Mirror:

https://npm.taobao.org/mirrors/node/v${version}/node-v${version}-linux-x64.tar.gz⁠

NWJS_URL

https://dl.nwjs.io/v${version}/nwjs-sdk-v${version}-linux-x64.tar.gz⁠

Mirror:

https://npm.taobao.org/mirrors/nwjs/v${version}/nwjs-sdk-v${version}-linux-x64.tar.gz⁠

Tag summary

Content type

Image

Digest

Size

850.7 MB

Last updated

about 7 years ago

docker pull seancheung/wxdevtool