Hey all,

At Cloudwatt/Orange, we have started to package OpenContrail by using
the Nix package manager [1] (distro agnostic).
Amongst several advantages, it allows you to easily set up development
environments, build (with reliability) and run test virtual machines
(for CI gates for instance).


Suppose you have Nix installed [2] and cloned the nixpkgs-contrail
repository [3]:

To get a build environment for the contrail-control R3.2:
$ nix-shell ./ -A contrail32.control --option binary-caches http://84.39.63.212
$ unpackPhase && cd $sourceRoot
$ scons contrail-control


To run an east-west ping test: build a VM, run OC and execute basic tests
$ nix-build -A contrail32.test.allInOne --option binary-caches 
http://84.39.63.212  # --check to force the rebuild 

The build of this test VM is reliable because all build requires
are cached: you can rebuild by reusing unchanged build
requires (think about the famous OpenContrail third-party for
instance)!
This test VM can also be used as a all-in-one contrail VM that
can be run interactively.

Note some OpenContrail components are also built by using master
branches (nix-build -A contrailMaster).


Hoping this could help you,
Antoine.

[1] https://nixos.org/nix/
[2] https://nixos.org/nix/manual/#chap-quick-start
[3] https://github.com/nlewo/nixpkgs-contrail

_______________________________________________
Dev mailing list
Dev@lists.opencontrail.org
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to