Hi Anda,

We are working on running Opencontrail in Docker as well. The documentation is 
lacking and spread out between different repositories.

There are instructions to get Opencontrail running in Kubernetes, using 
manifests [1] and using Helm [2]
[1] 
https://github.com/Juniper/contrail-docker/wiki/Provision-Contrail-CNI-for-Kubernetes
[2] 
https://github.com/Juniper/contrail-docker/wiki/Provisioning-OpenStack-cluster-using-openstack-helm-and-contrail

The containers used seem to have a few flaws we’re still working out, but it 
seems it should be possible to get these running.

Building you’re own Docker images is an whole other story. You’ll first need to 
build either RPM or Debian packages.

Building Debian packages can be done with the contrail-packages repo [3], but 
it needs some instructions. Filip Pytloun did this for the R3.x branch [4].
It does need some work for the R4.x branch, some of the dependencies have 
changed.
[3] https://github.com/Juniper/contrail-packages
[4] https://fpy.cz/building-opencontrail.html

Docker images can build build with the contrail-docker repo [5]. Instructions 
can be found in the wiki [6]. It’s not completely clear from the instructions 
that the CONTRAIL_INSTALL_PACKAGE_TAR_URL needs to contain a tar.gz with the 
contrail Debian packages. Another problem is that there are a lot of references 
in the code to what I think is an internal Juniper build server. We’ve been 
working on cleaning up the code and will share the result when it’s finished.
[5] https://github.com/Juniper/contrail-docker
[6] 
https://github.com/Juniper/contrail-docker/wiki/How-to-build-container-images

I hope this will clear things up a bit. We’re in the process of getting this 
set up ourselves, so any pointers or corrections are very welcome.

Kind regards,

Daan Porru
Full Stack Engineer

CYSO
Driven by Improvement
www.cyso.com<http://www.cyso.com>
daan.po...@cyso.com

T +31 (0)72 7513400
KvK 37133395
BTW NL818090431B01

On 19 Dec 2017, at 16:15, Anda Nicolae 
<anico...@lenovo.com<mailto:anico...@lenovo.com>> wrote:

Hi all,

I want to run Contrail services (such as contrail-vrouter-agent, 
contrail-collector, contrail-analytics, contrail-webui) and their dependencies 
(such as cassandra, kafka) inside Docker containers.
I googled for some instructions on how to build Docker images for Contrail 
services, but unfortunately I could not find anything relevant.

I have found contrail-docker repo on GitHub but I think this is used for 
running the Contrail services inside Docker containers.
Contrail-docker repo supposes that the Docker images containing the Contrail 
services are already built.

I have also found in [1] some already built Docker images containing Contrail 
services.
[1] https://hub.docker.com/u/opencontrail/?page=1

Unfortunately, for contrail-vrouter-agent, the Docker image is from R2.20 
branch:
https://hub.docker.com/r/opencontrail/vrouter-agent/tags/

My questions are:
1. How to build Contrail services from master branch as images for Docker 
containers?
2. Is contrail-docker the repo to be used for running Docker images containing 
Contrail services?
3. I want to run contrail-docker with the already-built Docker images from [1], 
although none of them is a Docker image from master branch.
   Do I need a Docker image containing contrail-vrouter-agent for R4.0 branch 
for a full Contrail setup?
4. Which OpenStack is used in conjunction with Docker images containing 
Contrail services?

Thanks,
Anda


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

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

Reply via email to