docker run -d -p 5000:5000 --restart=always --name registry registry:2
docker pull openjdk:8u252-slim
docker tag openjdk:8u252-slim localhost:5000/openjdk:8u252-slim
docker push localhost:5000/openjdk:8u252-slim
docker image remove openjdk:8u252-slim
docker image remove localhost:5000/openjdk:8u252-slim
docker run -p 8001:8001 localhost:5000/bcp-exchange-rate:1.0
curl --location --request GET 'localhost:8001/api/exchange-rate' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromCurrencyType":"PEN",
"toCurrencyType":"USD",
"amount":234
}'
curl --location --request POST 'localhost:8001/api/exchange-rate/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromCurrencyType":"PEN",
"toCurrencyType":"USD",
"price":3.49
}'