function install_dev_tools {
install_package apt-transport-https
install_package ca-certificates
+ # ca-certificates-java is not a dependency in the Oracle JDK/JRE so this must be explicitly installed.
+ /var/lib/dpkg/info/ca-certificates-java.postinst configure
install_package curl
}
function install_python {
install_package python2.7
install_package python-dev
+}
+
+# _install_pip() - Install Python Package Manager
+function _install_pip {
+ install_python
curl -sL https://bootstrap.pypa.io/get-pip.py | python
- pip install tox
}
-# install_docker() - Download and install docker-engine
+# install_python_package() - Install a python module
+function install_python_package {
+ local python_package=$1
+
+ _install_pip
+ pip install $python_package
+}
+
+# install_docker() - Download and install docker-engine
function install_docker {
if is_package_installed docker-ce; then
return
pushd $src_folder
if [ -f pom.xml ]; then
install_maven
- mvn clean install -U -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dadditionalparam=-Xdoclint:none
+ mvn clean install -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dadditionalparam=-Xdoclint:none
fi
popd
}
build_docker_image $folder/installation/ubuntu
asserts_image openecomp/ubuntu-sdnc-image
- /var/lib/dpkg/info/ca-certificates-java.postinst configure
build_docker_image $folder/installation/sdnc
asserts_image openecomp/sdnc-image
# compile_all_vfc_repos() - Function that compiles VF-C source repo.
function compile_all_vfc_repos {
+ install_python_package tox
+
pushd $src_folder/gvnfm/vnflcm/lcm
tox -e py27
popd