Skip to content

ganesh-moorthy-5999/dynamo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamo Showcase Application on Docker

Prerequisites

Following items are required to build and run the Dynamo Showcase application in a Docker environment.

  • Java 17.x
  • Maven 3.8.x
  • Node 16.0.x
  • AWS CLI 2.0.x
  • Docker - 20.10.x and above

Build Container Images

Dynamo Showcase application's Docker environment consists of 3 containers.

  • Dynamo Showcase database - Postgresql
  • Dynamo Showcase REST API Server
  • Dynamo Showcase webapp

Steps to build the Docker images for these containers are provided below.

Dynamo Showcase REST API Server Container Image

The container image for the Dynamo Showcase REST API Server is created using the Maven Jib plugin.

Build and export the CODEARTIFACT_AUTH_TOKEN using the below command.

export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain breezeware --domain-owner 305251478828 --query authorizationToken --output text`

Build the dependent projects

$ cd <project_home>/backend/dynamo-parent-lib
$ mvn -s mvn-settings.xml clean install -Dmaven.test.skip=true

$ cd <project_home>/backend/dynamo-sdk-lib
$ mvn -s mvn-settings.xml clean install -Dmaven.test.skip=true

Build the REST API server image

$ cd <project_home>/backend/dynamo-showcase-app
$ mvn clean package jib:dockerBuild -Dmaven.test.skip=true

Build Dynamo Showcase Webapp

$ cd <project_home>/frontend/dynamo-showcase

Run the below command to install dependencies.

$ npm install -f

Build the app using the below command.

$ npm run build

Run Container Images (Using Docker Compose)

Once the container images are built as per the details in the previous section, they can be run using Docker Compose (see file docker-compose.yml).

$ cd <project_home>
$ docker compose up

Test Application

Docker Compose will start 3 Docker containers using the images defined in the docker-compose.yml file. If everything loads up as expected, the Dynamo Showcase application can be accessed on http://localhost:3000

Email = [email protected]

Password = breeze123

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages