Skip to content
An example of microservice architecture
Java Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
delivery-service removed shared library among services Sep 26, 2019
img image Sep 27, 2019
kitchen-service fix Sep 27, 2019
order-service timing Sep 27, 2019
.dockerignore Hexagonal architecture Sep 18, 2019
.gitignore order and delivery service Sep 17, 2019
.travis.yml travis Sep 26, 2019
Dockerfile Error into readme Nov 12, 2019
README.md Error into readme Nov 12, 2019
kong.yml fix kong configuration Sep 27, 2019
mcpaspao.dockerapp Error into readme Nov 12, 2019
pom.xml removed shared library among services Sep 26, 2019

README.md

McPaspao Take Away

Build Status

Enable Docker 19.x experimental features

Build

docker buildx build --target=order-service -t paspaola/order-service:0.0.1 --load . &&\
docker buildx build --target=kitchen-service -t paspaola/kitchen-service:0.0.1 --load . &&\
docker buildx build --target=delivery-service -t paspaola/delivery-service:0.0.1 --load . &&\
docker buildx build --target=kong-mcpaspao -t paspaola/kong-mcpaspao:0.0.1 --load . 

Run

docker app render -s advertised.addr="your docker host ip" mcpaspao.dockerapp| docker-compose -f - up

Stop

docker app render mcpaspao.dockerapp| docker-compose -f - down

Example

curl -X POST "http://localhost:8000/kitchen-service/kitchen/add?hamburgerType=KOBE&quantity=2" -H "accept: application/json"|jq -C && \
 \
curl -X GET "http://localhost:8000/kitchen-service/kitchen/status" -H "accept: application/json"|jq -C && \
 \
printf "\n--START--\n" && \
curl -X POST "http://localhost:8000/order-service/order/create" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"addressDTO\": { \"number\": \"string\", \"street\": \"string\" }, \"cookingType\": \"BLOOD\", \"hamburgerList\": [ { \"hamburgerType\": \"KOBE\", \"quantity\": 2 } ], \"price\": 10}" |jq -C && \
printf "\n---------\n" && \
 \
curl -X GET "http://localhost:8000/order-service/order/view" -H "accept: application/json"|jq -C  && sleep 5 && \
printf "\n---------\n" && \
curl -X GET "http://localhost:8000/order-service/order/view" -H "accept: application/json"|jq -C && sleep 5 && \
printf "\n---------\n" && \
curl -X GET "http://localhost:8000/order-service/order/view" -H "accept: application/json"|jq -C && sleep 5 && \
printf "\n---------\n" && \
curl -X GET "http://localhost:8000/order-service/order/view" -H "accept: application/json"|jq -C && \
printf "\n---------\n" && \
 \
curl -X GET "http://localhost:8000/delivery-service/delivery/status" -H "accept: application/json"|jq -C && \
printf "\n--END--\n"
You can’t perform that action at this time.