Build from source

If you want to customize the SCR code, implement your own features and test how they work, you can build a service image from the source code.

Dependencies

Prior to building the project, make sure you have the required dependencies installed:

Build project

To build the SCR service image:

  1. Clone the repository.

    git clone [email protected]/kaaiot/SCR.git
    
  2. Build the project with Maven by running this command from the project root.

    mvn clean install
    

    To skip tests, run:

    mvn clean install -DskipTests
    
  3. Build the Docker image by running the next command from the project root.

    docker build -t hub.kaaiot.io/kaaiot/scr/scr:latest -f containers/docker/scr/Dockerfile --build-arg setupfile=service/target/scr-service-1.0.0-SNAPSHOT.jar .
    

After you have built the image, you can deploy SCR. See Deployment.