huawei-microservice-demo / shipping

servicecomb shipping micro service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

shipping app

shipping application written in [java] that will do the shippmnent task given by order service.

Build

Dependencies

Name Version
Docker = 1.11.2
Maven = 3.5.0
JDK = 8

example: docker-image-name:version-tag --> sockshop-shipping-service:0.0.1-SNAPSHOT

Step1:

git clone git@github.com:huawei-microservice-demo/shipping.git

Step2:

cd shipping

Step3: Build the JAR file with using maven

maven clean install

Step4: Build the docker image with docker file and JAR file

docker build -t [docker-image-name:version-tag] . put the JAR file and docker file in same folder and execute the above command.

Step5: Tag the image with service stage

docker tag [docker-image-name:version-tag] registry.cn-north-1.hwclouds.com/hwcse/[docker-image-name:version-tag] Note: hwcse is service stage username. registry.cn-north-1.hwclouds.com is service stage available zone.

Step6: Docker login

docker login -u [username] -p [private-key] [registry-name]

Step7: Docker push

docker push registry.cn-north-1.hwclouds.com/hwcse/[docker-image-name:version-tag]

Step8:

Create the appliation in service stage and give the respective docker image path.

Step9:

Login to the service stage and check the status of application.

About

servicecomb shipping micro service


Languages

Language:Java 100.0%