Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Simple Sample: Oracle NoSQL With Docker Compose

DZone's Guide to

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.

· Database Zone
Free Resource

MariaDB TX, proven in production and driven by the community, is a complete database solution for any and every enterprise — a modern database for modern applications.

Here is an example of using the Dockerized Oracle NoSQL image. This, along with many other Dockerized Oracle products, are available here.

oracle-nosql-jersey-dockercompose-sample-blog-logo

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!

MariaDB AX is an open source database for modern analytics: distributed, columnar and easy to use.

Topics:
oracle ,containerization ,nosql

Published at DZone with permission of Abhishek Gupta, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}