Skip to content

halo93/imageproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instruction to make Imageproject up and running

  1. Use Imageproject docker image:

    Prequesites:

    Steps:

    • From console, execute the command below to pull the docker image for Imageproject:

      docker pull halo93/imageproject:latest
      
    • After the step to pull the docker image has done, access to the imageproject root folder and execute the below command to instantiate a container:

      docker-compose -f src/main/docker/app-rds-cloud.yml up -d

    • To stop the container, execute the command below: docker-compose -f src/main/docker/app-rds-cloud.yml down

    ** We can track the processing status by using these command:

        docker ps -a (Then copy the docker container id of imageproject)
        docker logs --details -f DOCKER_CONTAINER_ID_IMAGE_PROJECT
    
  2. Build and run Imageproject directly:

    Prequesites:

    Steps:

    • From console, change directory to project root folder and execute the command below to build and run the application:
      ./mvnw
      
    • To stop the application, terminate the console window or interrupt the command by using ctrl + c key combination

** There is an option to build the imageproject docker image on your local, but it requires java and maven already installed on the machine. Steps:

    -- Build docker image:
    ./mvnw package -Pdev,webpack verify jib:dockerBuild

    -- Instantiate docker container:
        -- Using local database & ES:
           docker-compose -f src/main/docker/app-local.yml up -d
        -- Using AWS RDS database & AWS ES:
           docker-compose -f src/main/docker/app-rds-cloud.yml up -d
    -- Stop and remove the container:
        -- Using local database & ES:
           docker-compose -f src/main/docker/app-local.yml down
        -- Using AWS RDS database & AWS ES:
           docker-compose -f src/main/docker/app-rds-cloud.yml down

NOTE

  • C4 model diagrams are stored under the path: ./c4model
  • Gherkin files are stored under the path: ./src/test/features/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published