Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleBuilding 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 knowknown working commit point for R2003
    git checkout 1f8bfe6baa9a65d816fa4f0f8b649fc798bd94c12afb52a66a7ee73ed56a4e8d67736baf8d4d3337
    # 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
    # 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

...