Building and Testing - noobaa/noobaa-core GitHub Wiki

Building NooBaa

NooBaa's Makefile and its targets

NooBaa's Makefile contains several container targets:

builder: This is the image later used to build the base image of NooBaa. It contains tools and dependencies for building the next images in the chain.

base: This image already contains NooBaa code, with NPM dependencies and compilation (node-gyp) of the native code.

noobaa: This is the NooBaa image which will be run.

tester/test: Tester is a noobaa image with all the tests (unit and system) loaded into it. The Test would run the unit tests on the build tester image.

Testing NooBaa

Unit Tests

Running make test would result in the build of Tester and running the unit tests on it. IT is preferable to consume this via minikube. You can easily set minikube to act as the docker env by running minikube docker-env. After setting it, running any make command will result in the image created within minikube itself.