代码拉取完成,页面将自动刷新
.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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。