Small programm to test the functionality of Amazon DynamoDB deployed locally in docker container.
Web-UI used to manage / view the DynamoDB local instance is dynamodb-admin.
A small java programm that tries to write a key-value pair of integer and string every 2s in the local DynamoDB instance indefinitely. Every time the program is started, existing table in the database will be deleted and recreated.
The java programm, the DynamoDB instance, and the Web-UI will be deployed in docker container.
The DynamoDB instance is accessible in http://localhost:8000/
, while the web-UI to view the contents of the database is accessible in http://localhost:8001/
.
Configuration files location:
- Amazon credentials and DynamoDB url configuration for the java program is located in
src/main/resources/dynamodb.properties
- The java programm container:
/docker-compose.yml
- DynamoDB container:
compose/dynamodb/
- Web-UI container:
compose/dynadmin/
- Docker is installed.
-
Create bridging network:
docker network create counter
-
Start the DynamoDB container
- go to
compose/dynamodb/
docker-compose up
- default DynamoDB shell in
http://localhost:8000/shell/
- go to
-
Start the web-UI (optional)
- go to
compose/dynadmin/
docker-compose up
- go to
http://localhost:8001
- go to
-
Compile the programm in IntelliJ
-
Start the java programm
- go to
/
docker-compose build
docker-compose up
- go to