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

Learn how our document data model can map directly to how you program your app, and native database features like secondary indexes, geospatial and text search give you full access to your data. Brought to you in partnership with MongoDB.

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!

Discover when your data grows or your application performance demands increase, MongoDB Atlas allows you to scale out your deployment with an automated sharding process that ensures zero application downtime. Brought to you in partnership with MongoDB.

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.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}