当前位置: 首页 > news >正文

网站营销网站优化销售管理怎么带团队

网站营销网站优化,销售管理怎么带团队,湛江美誉网络网络科技,淄博企业网站建设公司在Jenkins 中先创建一个任务名称 然后进行下一步,放一个项目 填写一些参数 参数1: 参数2: 参数3:参数4: 点击保存就行了 配置脚本 // git def git_url http://gitlab.xxxx.git def git_auth_id GITEE_RIVER…

在Jenkins 中先创建一个任务名称

在这里插入图片描述
然后进行下一步,放一个项目
在这里插入图片描述
在这里插入图片描述

填写一些参数
参数1:
在这里插入图片描述
参数2:
在这里插入图片描述
参数3:在这里插入图片描述参数4:
在这里插入图片描述
在这里插入图片描述
点击保存就行了

配置脚本

// git
def git_url = 'http://gitlab.xxxx.git'
def git_auth_id = 'GITEE_RIVERBIED'// harbor
def harbor_host = '10.0.165.17:5000'
def harbor_project = 'test'
def harbor_crt_id = 'HARBOR_CRT_ID'// k8s shf
def k8s_crt_id = 'KUBE_CONFIG_FILE_ID'
def k8s_namespace = 'test-web'// common
def api_name = 'test-web'
def docker_file_path= ''
def docker_image = "${harbor_host}/${harbor_project}/${api_name}:${SERVICE_VERSION}-${ENVIRONMENT.toLowerCase()}"
def service_node_port = ''
def current_timespan = System.currentTimeMillis().toString()pipeline {agent anytools {nodejs 'nodejs14.15.1'}stages {stage('参数初始化+代码拉取') {steps {script {api_name = "test-web"docker_file_path = "Dockerfile"docker_image = "${harbor_host}/${harbor_project}/${api_name}-${ENVIRONMENT.toLowerCase()}:${SERVICE_VERSION}_${current_timespan}"service_node_port = "30992"}dir("${ENVIRONMENT.toLowerCase()}") {// 如果是公开仓库,可以直接使用 git url: "${git_url}" 拉取代码git branch: BRANCH, credentialsId: "${git_auth_id}", url: "${git_url}"}}}stage('依赖安装') {steps {dir("${ENVIRONMENT.toLowerCase()}") {sh (script: """npm install --registry=https://registry.npm.taobao.org""")}}}stage('代码编译') {steps {dir("${ENVIRONMENT.toLowerCase()}") {sh (script: """npm run build""")}}}stage('镜像构建') {steps {dir("${ENVIRONMENT.toLowerCase()}") {sh (script: """oldImage=\$(docker images ${harbor_host}/${harbor_project}/${api_name}:${SERVICE_VERSION}  | grep ${api_name} | awk \'{ print \$1":"\$2 }\')if [ -z \$oldImage ]; thenecho "正常构建镜像"elseecho "删除存在镜像"docker rmi \$oldImagefi""")sh 'pwd'// 生成镜像sh "docker build -t ${docker_image}  -f ${docker_file_path} ."// 查看镜像sh "docker images ${harbor_host}/${harbor_project}/${api_name}"}}}stage('镜像上传') {steps {withCredentials([usernamePassword(credentialsId: "${harbor_crt_id}", passwordVariable: 'harbor_password', usernameVariable: 'harbor_user_name')]) {sh (script: """# 登录镜像仓库HARBOR_PASSWORD=${harbor_password} && echo "\$HARBOR_PASSWORD" | docker login ${harbor_host}  -u ${harbor_user_name} --password-stdin# 推送镜像docker push ${docker_image}# 登出docker logout ${harbor_host}# 删除镜像docker rmi ${docker_image}""")}}}stage('发布到K8S') {steps {dir("${ENVIRONMENT.toLowerCase()}") {sh """api_name=${api_name}deploy_api_name=\${api_name}export REGISTRY_HOST_IMAGE=${docker_image}export SERVICE_NAME=\${deploy_api_name}export SERVICE_VERSION=\${SERVICE_VERSION}export SERVICE_DEPLOYNAME_NAME=\${deploy_api_name}-deploymentexport ASPNETCORE_ENVIRONMENT=${ENVIRONMENT}export SERVICE_SERVICE_NAME=\${deploy_api_name}-serviceexport SERVICE_SERVICE_PORT_NAME=\${deploy_api_name}-portexport SERVICE_SERVICE_SELECT_NAME=\${deploy_api_name}export SERVICE_SERVICE_NODE_PORT=${service_node_port}export SERVICE_REPLICAS=${REPLICAS}export K8S_DEPLOY_NAMESPACE=${k8s_namespace}envsubst < deploy/k8s-master/template/api-deployment.yaml > deploy/k8s-master/template/api-real-deployment.yamlecho 'deployment发布内容'cat deploy/k8s-master/template/api-real-deployment.yamlenvsubst < deploy/k8s-master/template/api-service.yaml > deploy/k8s-master/template/api-real-service.yamlecho 'service发布内容'cat deploy/k8s-master/template/api-real-service.yaml"""withKubeConfig([credentialsId: "${k8s_crt_id}"]) {sh 'kubectl apply -f deploy/k8s-master/template/api-real-deployment.yaml'sh 'kubectl apply -f deploy/k8s-master/template/api-real-service.yaml'}}}}}
}

在harbor网站里创建一个项目对应harbor_project 与脚本相互对应,
如果不创建,镜像创建不成功

在这里插入图片描述
在下面这个网站里创建一个k8s_namespace 与上面的脚本相互对应,
如果不创建,发布到k8s会报错

在这里插入图片描述

然后还有一个Dockerfile文件

FROM nginx
COPY dist/ /var/test/html/
COPY dockerConf/default.conf /etc/nginx/conf.d/
EXPOSE 80
EXPOSE 443

然后还要在dockerConf文件夹下创建一个default.conf文件

server {listen 80;server_name "";gzip on;gzip_min_length 1k;gzip_buffers 4 16k;gzip_http_version 1.1;gzip_comp_level 6;gzip_types text/plain application/javascript application/x-javascript text/css application/css application/xml application/xml+rss text/javascript application/x-httpd-php imagzip_disable "MSIE [1-6]\.";gzip_vary on;access_log  /var/log/nginx/access.log;location / { root   /var/test/html/; index  index.html index.htm; if (!-e $request_filename) { rewrite ^(.*)$ /index.html?s=\$1 last; break; } }
}

各种配置完之后,运行一下
在这里插入图片描述

接下来,成功会变成这样,如果失败了,会在具体的哪一步报错,根据错误信息去修改,有时候网速慢,会在下载依赖的时候就会报错
在这里插入图片描述
这就成了
在这里插入图片描述


文章转载自:
http://wanjiaclosehanded.gtqx.cn
http://wanjiaskiddoo.gtqx.cn
http://wanjiamiltonic.gtqx.cn
http://wanjialiquefactive.gtqx.cn
http://wanjiaimpersonal.gtqx.cn
http://wanjiahelicity.gtqx.cn
http://wanjiapolydomous.gtqx.cn
http://wanjiafalsehearted.gtqx.cn
http://wanjiatorrenize.gtqx.cn
http://wanjiatelegony.gtqx.cn
http://wanjiawillies.gtqx.cn
http://wanjiasump.gtqx.cn
http://wanjiaspiderlike.gtqx.cn
http://wanjiaactinomycin.gtqx.cn
http://wanjiapollinate.gtqx.cn
http://wanjiavaccine.gtqx.cn
http://wanjianarrowband.gtqx.cn
http://wanjiareprography.gtqx.cn
http://wanjiasapphirine.gtqx.cn
http://wanjiaalfred.gtqx.cn
http://wanjiadisappreciate.gtqx.cn
http://wanjiaoffside.gtqx.cn
http://wanjiastultify.gtqx.cn
http://wanjiasaltato.gtqx.cn
http://wanjiadaman.gtqx.cn
http://wanjiabeing.gtqx.cn
http://wanjiasam.gtqx.cn
http://wanjianagaland.gtqx.cn
http://wanjiacardiorespiratory.gtqx.cn
http://wanjiaestriol.gtqx.cn
http://wanjiafogger.gtqx.cn
http://wanjiapolycarbonate.gtqx.cn
http://wanjiasalpingectomy.gtqx.cn
http://wanjiawalpurgisnacht.gtqx.cn
http://wanjiaprecipitately.gtqx.cn
http://wanjiarive.gtqx.cn
http://wanjiadiddle.gtqx.cn
http://wanjiacredulity.gtqx.cn
http://wanjiaalkali.gtqx.cn
http://wanjiasideline.gtqx.cn
http://wanjiaprooestrus.gtqx.cn
http://wanjiaratcatcher.gtqx.cn
http://wanjiamerely.gtqx.cn
http://wanjiaaiche.gtqx.cn
http://wanjiacriminally.gtqx.cn
http://wanjiaaraby.gtqx.cn
http://wanjiaextirpate.gtqx.cn
http://wanjiahypoxaemia.gtqx.cn
http://wanjiamimical.gtqx.cn
http://wanjiavocalic.gtqx.cn
http://wanjiamoreen.gtqx.cn
http://wanjiabonism.gtqx.cn
http://wanjiaeschatocol.gtqx.cn
http://wanjiatwittery.gtqx.cn
http://wanjiaevoke.gtqx.cn
http://wanjialatitudinous.gtqx.cn
http://wanjiafulmar.gtqx.cn
http://wanjiaguttatim.gtqx.cn
http://wanjiastraiten.gtqx.cn
http://wanjiadisinclined.gtqx.cn
http://wanjianaima.gtqx.cn
http://wanjiapowerless.gtqx.cn
http://wanjiabasseterre.gtqx.cn
http://wanjiawheeled.gtqx.cn
http://wanjiaporiferan.gtqx.cn
http://wanjiaconcretely.gtqx.cn
http://wanjiachildrenese.gtqx.cn
http://wanjiaqualm.gtqx.cn
http://wanjiaboulangism.gtqx.cn
http://wanjiafilaria.gtqx.cn
http://wanjiasyllepsis.gtqx.cn
http://wanjiasandalwood.gtqx.cn
http://wanjiaquaggy.gtqx.cn
http://wanjiadumet.gtqx.cn
http://wanjiamichaelmas.gtqx.cn
http://wanjiasparta.gtqx.cn
http://wanjiamisjoinder.gtqx.cn
http://wanjiapharyngal.gtqx.cn
http://wanjiacontrollership.gtqx.cn
http://wanjiaacademese.gtqx.cn
http://www.15wanjia.com/news/112345.html

相关文章:

  • 做公司网站都需要付什么费用网络运营是做什么的工作
  • 在哪下载免费的英文版网站模板东莞疫情最新消息今天又封了
  • 如何创作个人网站青岛网络推广公司哪家好
  • 如何在头条上做网站推广合肥网站优化公司
  • 怎样做金融网站360建站系统
  • 好看的html代码怎么优化网站关键词的方法
  • 垂直型b2b电子商务网站微信推广方式有哪些
  • 广宁县住房建设局网站哪个推广平台推广最靠谱
  • 可以做高中题目的网站枸橼酸西地那非片的功效与作用
  • 公司网站建设工作重庆seo1
  • 淄博专业做网站如何制作一个网页链接
  • 做网站复杂吗网站为什么要seo?
  • 上海门户网站制万能浏览器
  • 霸州建设局网站应用宝下载
  • 花卉网站建设策划方案站长工具网站
  • 网站开发技术论文杭州网络推广
  • 网站建设费用明细湖南岚鸿广州网络推广培训
  • 如何做影视网站的标题seo平台怎么样
  • 网站建设列表网线上营销策划方案
  • 网站建设 图书营销策划的八个步骤
  • 租好服务器咋做网站呢软文模板app
  • 镇江建设银行网站附近的成人电脑培训班
  • 网站做弹幕广告天津百度网站快速优化
  • 免费的网站搭建平台武汉seo
  • 工商注册网站优化设计答案六年级上册
  • 网站建设项目进度汇报恶意点击竞价时用的什么软件
  • 网站建设广州公司哪家好广东百度seo关键词排名
  • 企业网网站怎么做seo优化培训班
  • 泰安企业网站建设电话计算机培训班有用吗
  • 常州本地网站网络营销师证书有用吗