Hello,

It seems to be similar to our project introduced a year ago (however
it's primary purpose is to build Debian packages):
https://github.com/Mirantis/contrail-pipeline

Which ships a Makefile to fetch sources using myrepos tool and build
contrail locally and Jenkinsfile to do the same using Jenkins pipeline.

Filip

On 2017/10/18 16:04, Anantharamu Suryanarayana wrote:
> Hi,
> 
> 
> I have uploaded a opencontrail/development_sandbox:ubuntu_14.04.5_R4.1 docker 
> image to dockerhub.com
> 
> This has R4.1 opencontrail code with key c++ based binaries and unit tests 
> already built. Hence, size is a little big (~35GB) and hence its download 
> could take a while. Please use  
> opencontrail/development_sandbox_lite:ubuntu_14.04.5_R4.1 (2G) if you just 
> want want the sandbox ready to be built (using scons). default tag latest is 
> also there, which for now, points to this tag ubuntu_14.04.5_R4.1
> 
> 
> e.g.
> 
> docker pull opencontrail/development_sandbox:ubuntu_14.04.5_R4.1 (~2GB)
> 
> 
> If you want one of smaller size(~2G), without binaries and tests already 
> built, then use
> 
>    docker pull opencontrail/development_sandbox_lite:ubuntu_14.04.5_R4.1 
> (~32GB)
> 
> 
> docker run -it opencontrail/development_sandbox:ubuntu_14.04.5_R4.1
> 
>    ls -al /root/Dockerfile # This docker file
> 
>    export USER=root
> 
>    export HOME=/root
> 
>    export TMPDIR=/root/tmp
> 
>    export NO_HEAPCHECK=TRUE
> 
>    export LOG_DISABLE=TRUE
> 
>    cd /root/contrail
> 
>    ls -al build/production/control-node/contrail-control
> 
>    ./build/debug/bgp/test/bgp_stress_test
> 
>    /usr/bin/repo sync # to update code to the latest from 
> github.com/Juniper/...
> 
>    scons --optimization=production -uj8 control-mode # to rebuild 
> contrail-control binary
> 
> 
> But, if one wants to read the code, run unit tests, etc. this would be quite 
> an easy to start.
> 
> 
> PS: By default, docker only creates/loads 10G sized containers. One needs to 
> increase the size to 40G to use this container.
> 
> I am giving here, Dockerfile as well, for reference. It is also part of the 
> image: /root/Dockerfile which has many different pieces already installed in 
> order to build opencontrail software.
> 
> Note: There is no contrail packaging software installed already in this 
> container...
> 
> 
> I hope this helps, for easier opencontrail code checkout and unit tests 
> building and running.. Please let me know if you any issue or question in 
> this regard.
> 
> 
> Thank you!
> 
> 
> Regards,
> 
> Ananth
> 
> 
> # docker build --tag opencontrail/development_sandbox:ubuntu_14.04.5_R4.1 .
> # docker run -it --privileged --net=host 
> opencontrail/development_sandbox:ubuntu_14.04.5_R4.1
> #
> # service docker stop
> # /lib/systemd/system/docker.service: ExecStart=/usr/bin/docker daemon 
> --storage-opt dm.basesize=40G -H fd://
> # rm -rf /var/lib/docker/*
> # service docker start
> 
> FROM ubuntu:14.04.5
> 
> RUN apt-get -y update
> RUN apt-get -y install git scons build-essential curl python-lxml autoconf 
> libtool unzip wget flex bison libxml2-dev libtbb-dev libssl-dev 
> liblog4cplus-dev cmake libcurl4-openssl-dev google-mock libboost-all-dev 
> tcpdump vlan protobuf-compiler libprotobuf-dev libgrok-dev libpcre3-dev 
> libbz2-dev libzookeeper-mt-dev libtokyocabinet-dev zsh vim libpcap-dev 
> libsasl2-dev libgrok1
> 
> RUN wget -q -O - 
> https://sourceforge.net/projects/libipfix/files/RELEASES/libipfix-dev_0.8.1-1ubuntu1_amd64.deb/download
>  > /root/libipfix-dev_0.8.1-1ubuntu1_amd64.deb
> RUN wget -q -O - 
> http://downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra/v2.2.0/cassandra-cpp-driver-dev_2.2.0-1_amd64.deb
>  > /root/cassandra-cpp-driver-dev_2.2.0-1_amd64.deb
> RUN wget -q -O - 
> http://downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra/v2.2.0/cassandra-cpp-driver_2.2.0-1_amd64.deb
>  > /root/cassandra-cpp-driver_2.2.0-1_amd64.deb
> RUN wget -q -O - 
> http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies/libuv/v1.14.1/libuv_1.14.1-1_amd64.deb
>  > /root/libuv_1.14.1-1_amd64.deb
> RUN dpkg -i /root/libuv_1.14.1-1_amd64.deb 
> /root/cassandra-cpp-driver_2.2.0-1_amd64.deb 
> /root/cassandra-cpp-driver-dev_2.2.0-1_amd64.deb 
> /root/libipfix-dev_0.8.1-1ubuntu1_amd64.deb
> ADD librdkafka1_0.9.4-0contrail0_amd64.deb /root/
> ADD librdkafka-dev_0.9.4-0contrail0_amd64.deb /root/
> RUN dpkg -i /root/librdkafka1_0.9.4-0contrail0_amd64.deb 
> /root/librdkafka-dev_0.9.4-0contrail0_amd64.deb
> 
> RUN curl -s https://storage.googleapis.com/git-repo-downloads/repo > 
> /usr/bin/repo
> RUN chmod a+x /usr/bin/repo
> RUN pwd
> RUN mkdir /root/contrail /root/tmp
> RUN (cd /root/contrail; repo init --quiet -u 
> https://github.com/Juniper/contrail-vnc -b R4.1)
> RUN (cd /root/contrail; sed -i -e 's/\.\./https:\/\/github.com\/Juniper/g' 
> .repo/manifests/default.xml)
> RUN (cd /root/contrail; repo sync || true)
> RUN (cd /root/contrail; TMPDIR=/root/tmp USER=root HOME=/root python 
> third_party/fetch_packages.py || true)
> 
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=production -uj32 
> control-node)
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=production -uj32 
> contrail-vrouter-agent)
> 
> # XXX Do this again..
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=production -uj32 
> contrail-vrouter-agent)
> 
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=production -uj32 
> contrail-collector)
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=production -uj32 
> src/bgp:bgp_stress_test)
> # RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=production -uj32 
> vrouter)
> 
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=debug -uj32 
> controller/src/bgp:test)
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=debug -uj32 
> controller/src/xmpp:test)
> RUN (cd /root/contrail; USER=root HOME=/root NO_HEAPCHECK=TRUE 
> BUILD_ONLY=TRUE TMPDIR=/root/tmp scons --optimization=debug -uj32 
> controller/src/ifmap:test)
> 
> 
> RUN cp /root/contrail/build/production/control-node/contrail-control 
> /root/contrail/build/production/bgp/test/bgp_stress_test 
> /root/contrail/build/production/vnsw/agent/contrail/contrail-vrouter-agent 
> /usr/bin/.
> RUN cp /root/contrail/build/production/analytics/vizd 
> /usr/bin/contrail-collector
> ADD Dockerfile /root/Dockerfile
> 
> 
> 
> 
> 
> 
> 
> From: Dev 
> <dev-boun...@lists.opencontrail.org<mailto:dev-boun...@lists.opencontrail.org>>
>  on behalf of "CARVER, PAUL" <pc2...@att.com<mailto:pc2...@att.com>>
> Date: Monday, May 15, 2017 at 5:06 AM
> To: "ran...@juniper.net<mailto:ran...@juniper.net>" 
> <ran...@juniper.net<mailto:ran...@juniper.net>>, 
> "dev@lists.opencontrail.org<mailto:dev@lists.opencontrail.org>" 
> <dev@lists.opencontrail.org<mailto:dev@lists.opencontrail.org>>
> Subject: [opencontrail-dev] Slide deck from the OCUG meeting
> 
> Randy,
> 
> Thanks for your presentation at the Open Contrail Users Group last week. Can 
> you please post a public link to your slide deck for people who were unable 
> to attend or who didn’t take phone photos of every slide. Especially, the 
> link to the Google Group needs to go out so that everyone on the Dev mailing 
> list can sign up.
> 
> I have a list of potential topics for the first meeting of whatever forum you 
> end up organizing.
> 
> 
>   *   Compiling Contrail from source – There has been a fair amount of 
> discussion of this on the mailing list recently
>      *   Discussion of issues people are encountering
>      *   Build scripts
>      *   Prerequisites
>      *   Documentation of the build process
> 
> _______________________________________________
> Dev mailing list
> Dev@lists.opencontrail.org<mailto:Dev@lists.opencontrail.org>
> http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opencontrail.org_mailman_listinfo_dev-5Flists.opencontrail.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=xtmPik_TP2fjPVGWP4yBRQ&m=-82g0JOxB4MmO2WE5pdM4Ax_lUx7cCMCvqDI0E0Kxpw&s=_4v1bQKzoqVSdZzyDH5Tdf5DhvRs--Zrjln19VV9Ywo&e=>

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

Attachment: signature.asc
Description: PGP signature

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

Reply via email to