Simple Sample: Oracle NoSQL With Docker Compose
This quick example demonstrates the usage of Docker Compose co-ordinating an Oracle NoSQL container and a dependent container running its (Java) client.
Join the DZone community and get the full member experience.
Join For FreeHere is an example of using the Dockerized Oracle NoSQL image. This, along with many other Dockerized Oracle products, are available here.
Key points
- Demonstrates usage of Docker Compose: co-ordinates an Oracle NoSQL container and a dependent container running its (Java) client.
- Docker Containers
- Oracle NoSQL ‘kvlite‘ instance (simple enough for demonstration).
- A Jersey + Grizzly based Fat JAR application which acts as a client.
Jersey App Image
- Built from the latest openjdk image.
- Exposes a REST interface to put keys into Oracle NoSQL instance and retrieve the key (return the inserted time stamp).
Oracle NoSQL Image
- The Docker Hub image is directly referenced in docker-compose configuration.
- Shows this as an example along with the build image pattern demonstrated by the Jersey app.
It's very simple to set up – instructions are available here. All you need to do is make sure that you have Docker installed.
Cheers!
Published at DZone with permission of Abhishek Gupta, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments