Run com.in28minutes.microservices.currencyconversionservice.CurrencyConversionServiceApplicationH2 as a Java Application.
{
"id": 10001,
"from": "USD",
"to": "INR",
"conversionMultiple": 65.00,
"environmentInfo": "NA"
}
- http://localhost:8000/h2-console
- Use
jdbc:h2:mem:testdb
as JDBC URL
create table exchange_value
(
id bigint not null,
conversion_multiple decimal(19,2),
currency_from varchar(255),
currency_to varchar(255),
primary key (id)
)
- Problem - Caused by: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: No such file or directory
- Solution - Check if docker is up and running!
- Problem - Error creating the Docker image on MacOS - java.io.IOException: Cannot run program “docker-credential-osxkeychain”: error=2, No such file or directory
- Solution - https://medium.com/@dakshika/error-creating-the-docker-image-on-macos-wso2-enterprise-integrator-tooling-dfb5b537b44e
- mvn package
docker container run --publish 8000:8000 in28min/currency-exchange:0.0.1-SNAPSHOT