代码拉取完成,页面将自动刷新
同步操作将从 CODOG.CN/shipyard 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。