5 Unstar Star 17 Fork 3

illusion / wechat_web_devtools

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Makefile 1.19 KB
Copy Edit Web IDE Raw Blame History
炒饭 authored 2019-04-10 14:59 . feat: v1.02.1904091
.PHONY: build run
REPO ?= canyoutle/wxdt
TAG ?= latest
WEAPPS ?= ${PWD}/..
PREVIEW_PROJECT ?= wechat-v2ex
build: wechat_v Dockerfile
docker build -t $(REPO):$(TAG) .
docker tag $(REPO):$(TAG) $(REPO):$$(cat wechat_v)
run-preview:
docker run -it \
-v $(WEAPPS):/projects \
-v $(PWD)/bin/docker-entrypoint.sh:/wxdt/bin/docker-entrypoint.sh \
$(REPO):$(TAG) \
sh -c "cli -l && cli -p /projects/$(PREVIEW_PROJECT)"
run:
docker run --rm -d \
-p 6080:80 \
-v $(WEAPPS):/projects \
--name wxdt-test \
$(REPO):$(TAG)
login:
docker exec -it wxdt-test cli -l
preview:
docker exec -it wxdt-test cli -p /projects/${PREVIEW_PROJECT}
log:
docker exec -it wxdt-test cat /var/log/wxdt.err.log
shell:
docker exec -it wxdt-test bash
build-wine: docker/Dockerfile-wine
cd docker; \
docker build -f Dockerfile-wine -t $(REPO):wine .
build-update: docker/Dockerfile-update
cd docker; \
docker build -f Dockerfile-update -t $(REPO):update .
update:
docker run \
-v ${PWD}:/wxdt \
-v wxdt-update:/tmp \
$(REPO):update \
/wxdt/bin/update_package_nw.sh
test:
docker run \
-v ${PWD}:/wxdt \
-v ${WEAPPS}:/projects \
-v wxdt-update:/tmp \
-p 6080:80 \
--name wxdt-test \
$(REPO):wine

Comment ( 0 )

Sign in for post a comment

HTML
1
https://gitee.com/liushuai05/wechat_web_devtools.git
git@gitee.com:liushuai05/wechat_web_devtools.git
liushuai05
wechat_web_devtools
wechat_web_devtools
master

Search