代码拉取完成,页面将自动刷新
同步操作将从 WeBank/we-cmdb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
current_dir:=$(shell pwd)
version:=$(shell bash ./build/version.sh)
date:=$(shell date +%Y%m%d%H%M%S)
project_name:=$(shell basename "${current_dir}")
remote_docker_image_registry=ccr.ccs.tencentyun.com/webankpartners/wecmdb-app
clean:
rm -rf $(current_dir)/cmdb-core/target
rm -rf $(current_dir)/cmdb-ui/node
rm -rf $(current_dir)/cmdb-ui/node_modules
clean_core_plugin:
rm -rf $(current_dir)/cmdb-core/target
rm -rf $(current_dir)/cmdb-ui/node
rm -rf $(current_dir)/cmdb-ui/node_modules
.PHONY:build
build_name=wecmdb-build
build:
mkdir -p repository
docker run --rm --name $(build_name) -v /data/repository:/usr/src/mymaven/repository -v $(current_dir)/build/maven_settings.xml:/usr/share/maven/ref/settings-docker.xml -v $(current_dir):/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn -U clean install -Dmaven.test.skip=true -s /usr/share/maven/ref/settings-docker.xml dependency:resolve
build_core_plugin:
mkdir -p repository
docker run --rm --name $(build_name) -v /data/repository:/usr/src/mymaven/repository -v $(current_dir)/build/maven_settings.xml:/usr/share/maven/ref/settings-docker.xml -v $(current_dir):/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn -U clean install -Pcore_plugin -Dmaven.test.skip=true -s /usr/share/maven/ref/settings-docker.xml dependency:resolve
image:
docker build -t $(project_name):$(version) .
push:
docker tag $(project_name):$(version) $(remote_docker_image_registry):$(date)-$(version)
docker push $(remote_docker_image_registry):$(date)-$(version)
env_config=smoke_branch.cfg
target_host="tcp://10.0.0.1:2375"
deploy:
docker tag $(project_name):$(version) $(remote_docker_image_registry):$(date)-$(version)
docker push $(remote_docker_image_registry):$(date)-$(version)
sh build/deploy_generate_compose.sh $(env_config) $(date)-$(version)
docker-compose -f docker-compose.yml -H $(target_host) up -d
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。