This repo hosts the manifest files (also known as recipes) needed to demonstrate multiple use cases of Edge Insights for Industrial
The repo command is an executable python script, predominantly used in Android
development workflow to simiplify the work across multiple repositories.
More details on repo and it's usage can be found at below links:
For EII code base in multi-repo, below are the commands one needs to run which in essence is similar to git cloning of mono-repo to pull out the required source code.
-
Installing repo tool
$ curl https://storage.googleapis.com/git-repo-downloads/repo > repo $ sudo mv repo /bin/repo $ sudo chmod a+x /bin/repo -
Pulling in the eii-manifests repo and using a manifest file
-
Create a working directory
$ mkdir -p <work-dir>
-
Initialize the repository using
repotool.$ cd <work-dir> $ repo init -u "https://github.com/open-edge-insights/eii-manifests.git"
This will create a .repo folder with
eii-manifestssource code pulled at.repo/manifestsunder the current directory. Since no manifest branch has been specified, in the below command with-bswitch, it will pull in themasterbranch source code at.repo/manifestsfolder. Please note, the branch name will bedefaulthere and not master but once can confirm that it is pointing to master bygit logcommand.Also, as no manifest/recipe file has been chosen with
-mswitch in the aboverepo initcommand, by default, thedefault.xmlmanifest will be selected. Please note, thedefault.xmlcorresponds to recipe/manifest where all the EII module and it's ingredient projects gets pulled in.
NOTE:
-
If one wants to test the changes of individual repos lying in a developer branch, the best way to have this tested is to have a branch pushed to
eii-manifestsrepo with the required manifests file/s updated, pointing to that developer branch. Eg: `Using a developer manifest branch to point to developer branch/s in multi-repo$ repo init -u "https://github.com/open-edge-insights/eii-manifests.git" -b <manifest_branch_name>
In above command,
manifest_branch_namerefers to remote branch ineii-manifestsrepo which could be used by other developers or the validation team to validate the manifests/recipes coming out of thismanifest_branch_name. -
If one wants to fetch the latest master branch of
eii-manifestsrepo, please run the below command:$ repo init -u "https://github.com/open-edge-insights/eii-manifests.git"
-
-
To validate the manifest that's in play (the below command should show the contents of
default.xmlas that is been chosen by default)$ repo manifest
-
Choosing a different manifest file
$ repo init -m <manifest_file>
Below are the various
manifest_filevalues for the above command:-
default.xml: All recipe (default):
Recipe has Vision + Timeseries + EII ingredient services
-
core.xml: Bare minimum recipe
Recipe has EII common libs/utils, build tools and sample apps(please check the README.md of the Samples to build and run)
-
video.xml: Vision recipe
Recipe has EII Bare minimum recipe + vision services
-
time_series.xml: Timeseries recipe
Recipe has EII Bare minimum recipe + time series services
NOTE: One can create his/her own manifest file with the combination of projects OR update the existing manifests as per the need and use it accordingly. For more details on manifest xml file syntax and semantics, please refer below links:
-
-
-
Pull all the projects mentioned in the manifest xml file with the default/specific revision mentioned for each project
$ repo sync
NOTE: Every repo init command should be followed by repo sync command to pull the source code for that particular recipe/manifest if the intention is to work with that particular recipe
-
Refer eii-core repo README.md to provision, build and run EII stack