Skip to content

Commit

Permalink
NoSQL CE 19.5 (oracle#1609)
Browse files Browse the repository at this point in the history
* Create Dockerfile to NoSQL DB CE19.5
* Update README.md
  • Loading branch information
NoSQLGuy authored May 12, 2020
1 parent ed0e51a commit e9a157e
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
34 changes: 34 additions & 0 deletions NoSQL/19.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle NoSQL Database Release 19.5.19 Community Edition

# Pull base image
# ---------------
FROM openjdk:14

MAINTAINER Anand Chandak <[email protected]>

ENV VERSION="19.5.19" \
KVHOME=/kv-19.5.19 \
PACKAGE="kv-ce" \
EXTENSION="zip" \
BASE_URL="http://download.oracle.com/otn-pub/otn_software/nosql-database/" \
_JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"

RUN yum -y install unzip && \
curl -OLs "${BASE_URL}/${PACKAGE}-${VERSION}.${EXTENSION}" && \
unzip "${PACKAGE}-${VERSION}.${EXTENSION}" && \
rm "${PACKAGE}-${VERSION}.${EXTENSION}" && \
yum -y remove unzip && rm -rf /var/cache/yum/*

VOLUME ["/kvroot"]

WORKDIR "$KVHOME"

EXPOSE 5000 5001 5010-5020

CMD ["java", "-jar", "lib/kvstore.jar", "kvlite", "-secure-config", "disable", "-root", "/kvroot"]
53 changes: 53 additions & 0 deletions NoSQL/19.5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Quickstart Running Oracle NoSQL Database on Docker

Start up KVLite in a Docker container. You must give it a name. Startup of KVLite is the default CMD of the Docker image:

$ docker run -d --name=kvlite oracle/nosql
In a second shell, run a second Docker container to ping the kvlite store instance:

$ docker run --rm -ti --link kvlite:store oracle/nosql \
java -jar lib/kvstore.jar ping -host store -port 5000
Note the required use of --link for proper hostname check (actual KVLite container is named 'kvlite'; alias is 'store').

You can also use the Oracle NoSQL Command Line Interface (CLI). Start the following container (keep container 'kvlite' running):

$ docker run --rm -ti --link kvlite:store oracle/nosql \
java -jar lib/kvstore.jar runadmin -host store -port 5000 -store kvstore

kv-> ping
Pinging components of store kvstore based upon topology sequence #14
10 partitions and 1 storage nodes
Time: 2020-05-12 06:43:53 UTC Version: 19.5.19
Shard Status: healthy:1 writable-degraded:0 read-only:0 offline:0 total:1
Admin Status: healthy
Zone [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] RN Status: online:1 read-only:0 offline:0
Storage Node [sn1] on 5463ba55a594:5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 19.5.19 2020-01-27 07:15:29 UTC Build id: 6783109c3c07 Edition: Community
Admin [admin1] Status: RUNNING,MASTER
Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber:43 haPort:5003 available storage size:1023 MB

kv-> put kv -key /SomeKey -value SomeValue
Operation successful, record inserted.
kv-> get kv -key /SomeKey
SomeValue
kv->
You have now Oracle NoSQL on a Docker container.

# More information
For more information on Oracle NoSQL, visit the [homepage](http://www.oracle.com/technetwork/database/database-technologies/nosqldb/overview/index.html) and the [documentation](http://docs.oracle.com/cd/NOSQL/html/index.html) for specific NoSQL instructions.

The Oracle NoSQL Database Community Edition also contains OpenJDK.
The Oracle NoSQL Database Enterprise Edition also contains Oracle Java Server JRE.

# Licenses
Oracle NoSQL Community Edition is licensed under the [APACHE LICENSE v2.0](https://docs.oracle.com/cd/NOSQL/html/driver_table_c/doc/LICENSE.txt).

OpenJDK is licensed under the [GNU General Public License v2.0 with the Classpath Exception](http://openjdk.java.net/legal/gplv2+ce.html)

The files in this repository folder are licensed under the [Universal Permissive License 1.0](http://oss.oracle.com/licenses/upl)

# Commercial Support on Docker Containers
Oracle NoSQL Community Edition has **no** commercial support.

Copyright

Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.

0 comments on commit e9a157e

Please sign in to comment.