-
Use Imageproject docker image:
Prequesites:
- Install docker on local machine by following the instruction in this URL:
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
-
Build and run Imageproject directly:
Prequesites:
- Install docker on local machine by following the instruction in this URL:
- Install Java 8: https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_HowTo.html
- Install Maven 3.6.0: https://maven.apache.org/install.html
- Create AWS credentials file:
- Create a folder named
.aws
in the user root folder (i.e. mkdir ~/.aws) - Create a file named
config
and paste this content to the file:[default] region = us-west-1
- Create a file named
credentials
and paste the below content to it:[default] aws_access_key_id = xxx aws_secret_access_key = yyy
- Create a folder named
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
- C4 model diagrams are stored under the path: ./c4model
- Gherkin files are stored under the path: ./src/test/features/