代码拉取完成,页面将自动刷新
同步操作将从 KodeRover/zadig 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Makefile to release koderover images
# release all images: make allpush
# release reaper: make reaperpush
.DEFAULT: all
.PHONY: all
IMAGE_PREFIX = ccr.ccs.tencentyun.com/koderover-rc/
DATE:=$(shell date +'%Y%m%d%H%M%S')
IMAGE_TAG:=$(shell ./docker/image-tag)
VCS_REF:=$(shell git rev-parse HEAD)
TAG ?= ${DATE}-${IMAGE_TAG}
TARGETS = aslan warpdrive cron podexec jenkins-plugin predator-plugin hub-server hub-agent
ALL_IMAGES=$(TARGETS:=.image)
ALL_PUSHES=$(TARGETS:=.push)
REAPER_TARGETS = trusty xenial bionic focal
ALL_REAPER_IMAGES=$(REAPER_TARGETS:=.reaper-image)
ALL_REAPER_PUSHES=$(REAPER_TARGETS:=.reaper-push)
DOCKERFILES=$(addsuffix .Dockerfile,$(addprefix docker/dist/,$(TARGETS)))
DOCKERFILES+=$(addsuffix .Dockerfile,$(addprefix docker/dist/reaper-plugin.,$(REAPER_TARGETS)))
all: $(ALL_IMAGES) $(ALL_REAPER_IMAGES)
allpush: $(ALL_PUSHES) $(ALL_REAPER_PUSHES)
reaper: $(ALL_REAPER_IMAGES)
reaperpush: $(ALL_REAPER_PUSHES)
dockerfiles: $(DOCKERFILES)
# make
docker/dist/%.Dockerfile: docker/%.Dockerfile.template docker/ubuntu-base.Dockerfile.inc docker/golang-deps.Dockerfile.inc
@mkdir -p docker/dist
@cp docker/$*.Dockerfile.template docker/dist/$*.Dockerfile
@sed -i -e '/#golang-deps.Dockerfile.inc/ {' -e 'r docker/golang-deps.Dockerfile.inc' -e 'd' -e '}' docker/dist/$*.Dockerfile
@sed -i -e '/#ubuntu-base.Dockerfile.inc/ {' -e 'r docker/ubuntu-base.Dockerfile.inc' -e 'd' -e '}' docker/dist/$*.Dockerfile
@sed -i -e '/#alpine-base.Dockerfile.inc/ {' -e 'r docker/alpine-base.Dockerfile.inc' -e 'd' -e '}' docker/dist/$*.Dockerfile
@sed -i -e '/#alpine-git-base.Dockerfile.inc/ {' -e 'r docker/alpine-git-base.Dockerfile.inc' -e 'd' -e '}' docker/dist/$*.Dockerfile
@echo docker/dist/$*.Dockerfile is generated
%.image: IMAGE ?= ${IMAGE_PREFIX}$*:${TAG}
%.image: docker/dist/%.Dockerfile
@echo building $*
docker build -t ${IMAGE} -f docker/dist/$*.Dockerfile .
%.push: IMAGE ?= ${IMAGE_PREFIX}$*:${TAG}
%.push: %.image
docker push ${IMAGE}
%.reaper-image: IMAGE ?= ${IMAGE_PREFIX}reaper-plugin:${TAG}
%.reaper-image: docker/dist/reaper-plugin.%.Dockerfile
@echo builting $*
docker build -t ${IMAGE}-$* -f docker/dist/reaper-plugin.$*.Dockerfile ./
%.reaper-push: IMAGE ?= ${IMAGE_PREFIX}reaper-plugin:${TAG}
%.reaper-push: %.reaper-image
@echo builting $*
docker push ${IMAGE}-$*
$(REAPER_TARGETS):%:%.reaper-image
$(TARGETS):%:%.image
.PHONY: clean
clean:
@rm -rf docker/dist
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。