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

Download the Altoros NoSQL Performance Benchmark 2018. Compare top NoSQL solutions – Couchbase Server v5.5, MongoDB v3.6, and DataStax Enterprise v6 (Cassandra).

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!

Download the whitepaper, Moving From Relational to NoSQL: How to Get Started. We’ll take you step by step through your first NoSQL project.

Topics:
oracle ,containerization ,nosql

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}