1 Star 0 Fork 2

王立松/doctron

forked from 橙子/doctron 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
lampNick 提交于 2021-10-21 11:21 . update version
.DEFAULT: help
IMAGE_NAME ?= lampnick/doctron
CENTOS_IMAGE_TAG ?= v0.3.2-centos
ALPINE_IMAGE_TAG ?= v0.3.2-alpine
help: Makefile
@echo "Doctron is a document convert tools for html pdf image etc.\r\n"
@echo "Usage: make <command>\r\n\r\nThe commands are:\r\n"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
# @sed -n 's/^##.*:/\033[34m &: \033[0m/p' $< | column -t -s ':' |sed -e 's/^/ /' | awk '{print $0}'
## build-runtime-alpine: build a runtime docker image with alpine.
build-runtime-alpine:
@docker build -f Dockerfile.runtime.alpine -t lampnick/runtime:chromium-alpine .
## build-doctron-alpine: build doctron docker image with alpine.
build-doctron-alpine:
@docker build -t $(IMAGE_NAME):$(ALPINE_IMAGE_TAG) .
@docker tag $(IMAGE_NAME):$(ALPINE_IMAGE_TAG) $(IMAGE_NAME):latest
## run-doctron-alpine: run doctron alpine docker image.
run-doctron-alpine:
@docker run -p 8080:8080 --rm --name doctron-alpine \
$(IMAGE_NAME):$(ALPINE_IMAGE_TAG)
## centos-golang-compile: build a golang compile docker image with centos.
centos-golang-compile:
@docker build -f Dockerfile.golang.centos -t lampnick/golang:v1.15.2-centos .
## build-doctron-centos: build doctron docker image with centos.
build-doctron-centos:
@docker build -f Dockerfile.doctron.centos -t $(IMAGE_NAME):$(CENTOS_IMAGE_TAG) .
## run-doctron-centos: run doctron centos docker image.
run-doctron-centos:
@docker run -p 8080:8080 --rm --name doctron-centos \
$(IMAGE_NAME):$(CENTOS_IMAGE_TAG)
## test-html2pdf: test convert html to pdf.
test-html2pdf:
@curl -s http://localhost:8080/status
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wls/doctron.git
git@gitee.com:wls/doctron.git
wls
doctron
doctron
master

搜索帮助