Giter Site home page Giter Site logo

dubbodemo's Introduction

Dubbo Demo on Alauda Cloud

A dubbo demo running on Alauda Cloud.

Dubbo-Admin

Dockerfile in docker-admin

Where to get dubbo-admin-2.5.3.war

See: dubbo 2.5.3 环境搭建

Unpack war to ROOT

unzip dubbo-admin-2.5.3.war -d ./ROOT

Build Docker Image

cd docker-admin
docker build -t index.alauda.cn/claas/dubbo:alpine-jre8-tomcat8-dubbo2.5.3 .

Demo Provider & Demo Consumer

Code in dubbo-demo.

Thanks to binblee on github.

Build demo

cd dubbo-demo
mvn clean package

Build Provider Docker Image

cd dubbo-demo/service-producer
docker build -t index.alauda.cn/claas/dubbo-demo-provider:dubbo2.5.3 .

Build Consumer Docker Image

cd dubbo-demo/service-consumer
docker build -t index.alauda.cn/claas/dubbo-demo-consumer:dubbo2.5.3 .

Run on Alauda Cloud

Use dubbo.yml as template to create an application on Alauda Cloud.

Zookeeper Cluster

  • 3 nodes
  • host network mode
  • Use IP address's of your own physical or virtual machines

DubboAdmin Webapp

  • 2 nodes
  • flannel network mode
  • Default root password is root, or specify your own:
    • DUBBO_ROOT_PASSWORD=yourposs
  • Default guest password is guest, or specify your own:
    • DUBBO_GUEST_PASSWORD=yourposs
  • Use the following style for environment variable ZK_URL:
    • ZK_URL=zoo1:2181?backup=zoo2:2181,zoo3:2181
    • ZK_URL=zoo1:2181
  • NOT USE the follows for ZK_URL:
    • ZK_URL=zoo1:2181,zoo2:2181,zoo3:2181

Porvider & Consumer

  • 1 node respectively
  • flannel network mode
  • Use ZK_URL:
    • ZK_URL=zoo1:2181,zoo2:2181,zoo3:2181
    • ZK_URL=zoo1:2181

Links Statements

  • The links statements indicate dependency relationship among services defined in dubbo.yml. Use Strict Mode to create your application on Alauda Cloud.

Verify

create a ssh tunnel to the K8s master node mastering your dubbo-admin pod. ssh -L 8080:10.20.0.9:8080 [email protected]

Open your browser to visit: http://localhost:8080/

dubbodemo's People

Watchers

 avatar

Forkers

dattt111

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.