加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
炒饭 提交于 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化