LABEL version="0.1" description="OPNFV Functest Docker container"
ENV repos_dir /home/opnfv/repos
+ENV HOME /home/opnfv
WORKDIR /home/opnfv
RUN git clone https://github.com/openstack/rally.git ${repos_dir}/rally
RUN git clone https://github.com/opendaylight/integration.git ${repos_dir}/odl_integration
RUN git clone -b stable https://github.com/boucherv-orange/clearwater-live-test ${repos_dir}/vims-test
+RUN git clone https://github.com/openstack/networking-bgpvpn ${repos_dir}/bgpvpn
RUN pip install -r ${repos_dir}/functest/docker/requirements.pip
RALLY_REPO_DIR=$(cat $config_file | grep -w dir_repo_rally | awk 'END {print $NF}')
RELENG_REPO_DIR=$(cat $config_file | grep -w dir_repo_releng | awk 'END {print $NF}')
VIMS_REPO_DIR=$(cat $config_file | grep -w dir_repo_vims_test | awk 'END {print $NF}')
+BGPVPN_REPO_DIR=$(cat $config_file | grep -w dir_repo_bgpvpn | awk 'END {print $NF}')
FUNCTEST_DIR=$(cat $config_file | grep -w dir_functest | awk 'END {print $NF}')
FUNCTEST_RESULTS_DIR=$(cat $config_file | grep -w dir_results | awk 'END {print $NF}')
RELENG_COMMIT=$(cat $config_file | grep -w releng_commit | awk 'END {print $NF}')
VIMS_BRANCH=$(cat $config_file | grep -w vims_test_branch | awk 'END {print $NF}')
VIMS_COMMIT=$(cat $config_file | grep -w vims_test_commit | awk 'END {print $NF}')
+BGPVPN_BRANCH=$(cat $config_file | grep -w bgpvpn_branch | awk 'END {print $NF}')
+BGPVPN_COMMIT=$(cat $config_file | grep -w bgpvpn_commit | awk 'END {print $NF}')
+
echo "_____Parsed needed data from ${config_file}:"
echo "####### Directories #######"
git reset --hard ${VIMS_COMMIT}
fi
+ info "Updating BGPVPN repository...."
+ cd ${BGPVPN_REPO_DIR}
+ if [ ${BGPVPN_BRANCH} != "master" ]; then
+ info "BGPVPN repo: checkout ${BGPVPN_BRANCH} branch..."
+ git checkout ${BGPVPN_BRANCH}
+ fi
+ info "BGPVPN repo: pulling to latest..."
+ git pull
+ if [ ${BGPVPN_COMMIT} != "latest" ]; then
+ info "BGPVPN repo: given commit is ${BGPVPN_COMMIT}. Reseting..."
+ git reset --hard ${BGPVPN_COMMIT}
+ fi
fi
# We do this regardless if its online or offline mode.
dir_repo_rally: /home/opnfv/repos/rally
dir_repo_releng: /home/opnfv/repos/releng
dir_repo_vims_test: /home/opnfv/repos/vims-test
+ dir_repo_bgpvpn: /home/opnfv/repos/bgpvpn
dir_functest: /home/opnfv/functest
dir_results: /home/opnfv/functest/results
dir_functest_conf: /home/opnfv/functest/conf
rally_commit: 9a17d8490e7fb4afee2f5629e6db41eabe4bc4d4
vims_test_branch: stable
vims_test_commit: latest
+ bgpvpn_branch: master
+ bgpvpn_commit: latest
openstack:
image_name: functest-img