/queue-master

service that processes the orders queue

Primary LanguageJava

queue-master

Build Status

queue-master app

queue-master application written in [java] that processes the orders queue

Build

Dependencies

Name Version
Docker = 1.11.2
Maven = 3.5.0
JDK = 8

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

Step1:

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

Step2:

cd queue-master

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.