1 Star 0 Fork 0

Cloudy/occamy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 825 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Copyright 2019 Changkun Ou. All rights reserved.
# Use of this source code is governed by a MIT
# license that can be found in the LICENSE file.
VERSION = $(shell git describe --always --tags)
BUILD = $(shell date +%F)
GOPATH=$(shell go env GOPATH)
HOME = changkun.de/x/occamy
IMAGE = occamy
compile:
go build -mod vendor -x -o occamyd
.PHONY: compile
build:
docker build -t $(IMAGE):$(VERSION) -t $(IMAGE):latest -f docker/Dockerfile .
.PHONY: occamy
run:
cd docker && docker-compose up -d
stop:
cd docker && docker-compose down
test:
go test -cover -coverprofile=cover.test -v ./...
go tool cover -html=cover.test -o cover.html
clean:
docker images -f "dangling=true" -q | xargs docker rmi -f
docker image prune -f
# docker rm $(docker ps -a -q)
# docker rmi $(docker images | grep occamy)
.PHONY: clean
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/itcloudy/occamy.git
git@gitee.com:itcloudy/occamy.git
itcloudy
occamy
occamy
master

搜索帮助