cloudadc/backend

By cloudadc

Updated over 2 years ago

A microservice provides a series of service.

Image
0

369

cloudadc/backend repository overview

A microservice provides a series of service.

Access http://HOSTNAME/swagger-ui.html will get all services.

Build

docker build -t cloudadc/backend:0.1.5 .
docker push cloudadc/backend:0.1.5

Run

docker run -e "APP_DATACENTER_NAME=MP" -e "APP_VERSION_NUMBER=1.0" -e "APP_DECISION_BI_RPT=BI" -p 8080:8080 cloudadc/backend:0.1.5

Test

$ curl http://localhost:8080/v3/api-docs

$ curl http://localhost:8080/api/fruits
[{"id":1,"name":"Cherry"},{"id":2,"name":"Apple"},{"id":3,"name":"Banana"}

$ curl http://localhost:8080/api/fruits/3
{"id":3,"name":"Banana"}

Code

https://github.com/cloudadc/client-server-demo/tree/master/backend

Tag summary

Content type

Image

Digest

sha256:d54b07833

Size

229.3 MB

Last updated

over 2 years ago

Requires Docker Desktop 4.37.1 or later.