1 Star 0 Fork 29

Koko/shipyard

forked from CODOG.CN/shipyard 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
jessyF 提交于 2015-11-13 09:49 . 修正释放脚本
CGO_ENABLED=0
GOOS=linux
GOARCH=amd64
TAG=${TAG:-latest}
COMMIT=`git rev-parse --short HEAD`
#测试
IP=192.168.1.105
all: build media
clean:
@rm -rf controller/controller
build:
@cd controller && godep go build -a -tags "netgo static_build" -installsuffix netgo
# @cd controller && godep go build -a -tags "netgo static_build" -installsuffix netgo -ldflags "-w -X github.com/shipyard/shipyard/version.GitCommit=$(COMMIT)" .
remote-build:
@docker build -t shipyard-build -f Dockerfile.build .
@rm -f ./controller/controller
@cd controller && docker run --rm -w /go/src/github.com/shipyard/shipyard --entrypoint /bin/bash shipyard-build -c "make build 1>&2 && cd controller && tar -czf - controller" | tar zxf -
media:
@cd controller/static && bower -s install --allow-root -p | xargs echo > /dev/null
image: media build
@echo Building Shipyard image $(TAG)
@cd controller && docker build -t dockerclub/shipyard:$(TAG) .
release: build image
@docker push dockerclub/shipyard:$(TAG)
test: clean
@godep go test -v ./...
testbuild:
@cd controller \
&& godep go build -a -tags "netgo static_build" -installsuffix netgo
testrun:
@cd controller \
&& ./controller --debug server --rethinkdb-addr=${IP}:28015 -d tcp://${IP}:2375
.PHONY: all build clean media image test release
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/Kokokk/shipyard.git
git@gitee.com:Kokokk/shipyard.git
Kokokk
shipyard
shipyard
master

搜索帮助