Skip to content

Connecting to Amazon DocumentDB with RDS CA from a dockerized Java.

Notifications You must be signed in to change notification settings

zpapez/java-docker-rds

Repository files navigation

java-docker-rds

Connecting to Amazon DocumentDB with RDS CA from a dockerized Java.

Build and Run

  1. Configure your cluster host, user, password, database, and collection in Main.java
  2. Build a fat jar (see build.gradle)
./gradlew clean jar
  1. Build docker image (see Dockerfile)
docker build --tag my-prj/service:0.0.0-local --build-arg trustStorePassword=somePassword .

This bakes a trust store with RDS CA certificate inside the image using import_rds_certs.sh

  1. Run the image
docker run abcdef12345
  1. This should output the number of entries in your collection.

About

Connecting to Amazon DocumentDB with RDS CA from a dockerized Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published