Page tree
Skip to end of metadata
Go to start of metadata

Preparing dev-env image

Preparing R2003 dev-env
# This is the process used for preparing dev-env sandbox image.
# which includes additional process, ensuring usage of DPDK 18.05.1 upstream
#
# checkout tf-dev-env repository
git clone https://github.com/tungstenfabric/tf-dev-env.git
pushd tf-dev-env/
  # checkout the known working commit point for R2003
  git checkout 2afb52a66a7ee73ed56a4e8d67736baf8d4d3337
  # following command helps you install docker for you environment
  # you can skip running if docker is already installed and available
  sudo -E common/setup_docker.sh

  # we have the environment set so we will be creating the sandbox now.
  export CONTAINER_REGISTRY="tungstenfabric"
  export DEVENV_TAG="R2003"
  export CONTRAIL_CONTAINER_TAG="R2003"
  pushd container
    ./build.sh
  popd
popd

Manifest file for Release R2003 code

Release R2003 manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote fetch="https://github.com/Juniper" name="github"/>
  <remote fetch="https://github.com/tungstenfabric" name="githubtf"/>

  <default remote="github" revision="refs/heads/master"/>

  <project dest-branch="R2003" name="contrail-ansible-deployer" path="contrail-deployers-containers/containers/kolla-ansible-deployer/src/contrail-ansible-deployer" revision="b220350acc87c1a6bc6f02e3a3bb0306c6e023e1" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-api-client" path="src/contrail-api-client" revision="8130a3684f574cc70408a9b3ca31c5b4b39df278" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-build" path="tools/build" revision="c1836f0548a45438883dafed545e965a2b102369" upstream="R2003">
    <copyfile dest="SConstruct" src="SConstruct"/>
  </project>
  <project dest-branch="R2003" name="contrail-common" path="src/contrail-common" revision="6621e5a4e80d2b4e5435bcd7702b128fa3a3f627" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-container-builder" revision="4697b1f7a59780a216025e785b52c01dd05f17d0" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-controller" path="controller" revision="4c9c6a27a4ed3cbc7d3d102b16f16cb378b9de7c" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-deployers-containers" revision="34e31ced0edc81319d038d75e730410e940ed77e" upstream="R2003"/>
  <project dest-branch="contrail_dpdk_18_05_1" name="contrail-dpdk" path="third_party/dpdk" revision="b28933358a794b4c8aa528c0f65ac7c5f547098a" upstream="contrail_dpdk_18_05_1"/>
  <project dest-branch="R2003" name="contrail-heat" path="openstack/contrail-heat" revision="617a13360e8cace82df97272cb6800e14cacd702" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-java-api" path="java-api" revision="52f34ee8e8bac074645561872d48d027b68cf2b2" upstream="R2003"/>
  <project dest-branch="contrail/queens" name="contrail-kolla-ansible" path="contrail-deployers-containers/containers/kolla-ansible-deployer/src/contrail-kolla-ansible" revision="f1f1fc836740ac0a09076dfb701dd7780d47f382" upstream="contrail/queens"/>
  <project dest-branch="R2003" name="contrail-neutron-plugin" path="openstack/neutron_plugin" revision="aa7a27e0e4bc02afad9512cd0c367adbe14f0aa7" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-nova-vif-driver" path="openstack/nova_contrail_vif" revision="78ce662b07b4d08ccf9651f777b4d69ad300ae38" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-packages" path="tools/packages" revision="b878e1b143685db3c7d1b44095210354b57b83b1" upstream="R2003"/>
  <project dest-branch="master" name="contrail-specs" revision="e7d4efe7b664e938d6d80451d8468481b325b065" upstream="master"/>
  <project dest-branch="R2003" name="contrail-test" path="third_party/contrail-test" revision="f6aed9c92c804f5ff9e0ca914d352996f9d511af" upstream="R2003"/>
  <project dest-branch="master" name="contrail-third-party-packages" path="third_party/contrail-third-party-packages" revision="fbd9669469b17d927b8d4290f7a2809e943df5cd" upstream="master"/>
  <project dest-branch="stable/queens" name="contrail-tripleo-heat-templates" revision="042a137c4999ec3dabfdf5684ca15fee9524ebad" upstream="stable/queens"/>
  <project dest-branch="R2003" name="contrail-vro-plugin" path="vro-plugin" revision="f2e38ce8dd94e421f6a0565090fc71b2522a9483" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-vrouter" path="vrouter" revision="39bbc63f3f2822d564d910b559c90fedecd95553" upstream="R2003"/>
  <project dest-branch="R2003" name="contrail-vrouter-java-api" path="vrouter-java-api" revision="0d1281c5e116fbc96b57fbb2acca0f5e6a6427b1" upstream="R2003"/>
  <project dest-branch="master" name="openshift-ansible" path="contrail-deployers-containers/containers/openshift-ansible-deployer/src/openshift-ansible" revision="503c3667a04aa25d3eec4185ae23954ac6cbfa29" upstream="master"/>
  <project dest-branch="release-3.7-contrail" name="openshift-ansible" path="contrail-deployers-containers/containers/openshift-ansible-deployer/src/openshift-ansible3.7" revision="612d581f2de15987bc45499125c1e9f07c814941" upstream="release-3.7-contrail"/>
  <project dest-branch="release-3.9-contrail" name="openshift-ansible" path="contrail-deployers-containers/containers/openshift-ansible-deployer/src/openshift-ansible3.9" revision="794f1cc04404d05e3ffc8b2b56959f397e6990dd" upstream="release-3.9-contrail"/>
  <project dest-branch="release-3.11-contrail" name="openshift-ansible" path="contrail-deployers-containers/containers/openshift-ansible-deployer/src/openshift-ansible3.11" revision="85725d9a80d35755f032259c0180717083a9ad84" upstream="release-3.11-contrail"/>
  <project dest-branch="R2003" name="tf-analytics" path="src/contrail-analytics" remote="githubtf" revision="7ec2c4e697caebf090212b0a267567a416a20220" upstream="R2003"/>
  <project dest-branch="R2003" name="tf-third-party" path="third_party" remote="githubtf" revision="7bd37b9427b82d8285c4799ed3d0f7b37d8dbf61" upstream="R2003"/>
  <project dest-branch="stable/queens" name="tf-tripleo-puppet" path="openstack/contrail-tripleo-puppet" remote="githubtf" revision="1f193554d2d3cf8369271da2c0f24ded98fdebf8" upstream="stable/queens"/>
  <project dest-branch="R2003" name="tf-vcenter-fabric-manager" path="vcenter-fabric-manager" remote="githubtf" revision="782732464ef1e3b4c20f25045937b3788a88c080" upstream="R2003"/>
  <project dest-branch="R2003" name="tf-vcenter-manager" path="vcenter-manager" remote="githubtf" revision="67e08243a965e98b08e2923b9c459a48dad08b2e" upstream="R2003"/>
  <project dest-branch="R2003" name="tf-vcenter-plugin" path="vcenter-plugin" remote="githubtf" revision="7afb6f832ffe8cafe9359e0bc6f1d3170a8a42f4" upstream="R2003"/>
  <project dest-branch="R2003" name="tf-web-controller" path="contrail-web-controller" remote="githubtf" revision="c5bd3b5e51bf71e844708ba971ff3dabd4c572eb" upstream="R2003"/>
  <project dest-branch="R2003" name="tf-web-core" path="contrail-web-core" remote="githubtf" revision="6c78354fefc925251b9b0935537e6ba63d89b824" upstream="R2003"/>
  <project dest-branch="R2003" name="tf-webui-third-party" path="contrail-webui-third-party" remote="githubtf" revision="7ab342477ac834f171149293d0aa45887591aea9" upstream="R2003"/>
  <project dest-branch="R2003" name="vijava" revision="0d49a5f6905cf3dc66947184298971833a57db17" upstream="R2003"/>
</manifest>

building the release can be done using following

Building release R2003
# Following can be used to trigger a build for Release R2003
pushd $HOME
  # checkout the code for Release R2003
  mkdir code
  pushd code
    # save the content of manifest in R2003.xml here
    curl -s https://storage.googleapis.com/git-repo-downloads/repo > ./repo
    chmod a+x ./repo
    mkdir -p .repo/manifests
    scp R2003.xml .repo/manifests/
    ./repo init --no-clone-bundle -q -u https://github.com/Juniper/contrail-vnc.git -m R2003.xml
    ./repo sync --no-clone-bundle -q -j $(nproc)
    # remove references to Juniper license
    pushd contrail-container-builder
      find . -name *licens* -exec cp LICENSE {} \;
    popd
  popd
  # checkout tf-dev-env repository, if not already done
  git clone https://github.com/tungstenfabric/tf-dev-env.git
  pushd tf-dev-env/
    # checkout the known working commit point for R2003
    git checkout 2afb52a66a7ee73ed56a4e8d67736baf8d4d3337
    # we have the environment set so we will be creating the sandbox now.
    export CONTAINER_REGISTRY="tungstenfabric"
    export DEVENV_TAG="R2003"
    export CONTRAIL_CONTAINER_TAG="R2003"
    # mount the code repo in tf-dev-env, where we have check-out the code
    export CONTRAIL_DIR=$HOME/code
    # in case running on low resources
    export CONTRAIL_PARALLEL_BUILD=false
    # ensure it does not automatically push the images to repo
    echo "CONTRAIL_REGISTRY_PUSH=0" | sudo tee -a common.env.tmpl
    ./run.sh none
    ./run.sh configure
    ./run.sh compile
    ./run.sh package
  popd
popd
  • No labels