Skip to content

Latest commit

 

History

History
89 lines (67 loc) · 3.1 KB

README.md

File metadata and controls

89 lines (67 loc) · 3.1 KB

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/