Code Monkey home page Code Monkey logo

bankdemo's Introduction

bankdemo

bankdemo 微服务环境下,分布式事务dome 使用dockerfile 实现多个images 的构建

用Jenkins实现docker 构建images,构建命令如下: #设置宿主机的docker远程访问地址 export DOCKER_HOST=tcp://192.168.20.174:2375 docker login --username=100007533986 --password=bobo1015 ccr.ccs.tencentyun.com docker build -t ccr.ccs.tencentyun.com/moto/eurekaservice:${BUILD_NUMBER} --target eurekaservice . #docker -H $DOCKER_HOST build -t ccr.ccs.tencentyun.com/moto/eurekaservice:${BUILD_NUMBER} . docker -H $DOCKER_HOST push ccr.ccs.tencentyun.com/moto/eurekaservice:${BUILD_NUMBER} #docker -H $DOCKER_HOST rmi -f ccr.ccs.tencentyun.com/moto/eurekaservice:${BUILD_NUMBER} docker -H $DOCKER_HOST build -t ccr.ccs.tencentyun.com/moto/tx-manager:${BUILD_NUMBER} --target tx-manager . docker -H $DOCKER_HOST push ccr.ccs.tencentyun.com/moto/tx-manager:${BUILD_NUMBER} docker -H $DOCKER_HOST build -t ccr.ccs.tencentyun.com/moto/bank-a:${BUILD_NUMBER} --target bank-a . docker -H $DOCKER_HOST push ccr.ccs.tencentyun.com/moto/bank-a:${BUILD_NUMBER} docker -H $DOCKER_HOST build -t ccr.ccs.tencentyun.com/moto/bank-b:${BUILD_NUMBER} --target bank-b . docker -H $DOCKER_HOST push ccr.ccs.tencentyun.com/moto/bank-b:${BUILD_NUMBER} 因为我用的是docker部署是Jenkins,于是使用的是远程docker实现build功能

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.