#
# Use Dockerfile-local for running osm/RO in a docker container from source
-FROM ubuntu:16.04
+FROM ubuntu:18.04
RUN apt-get update && \
- DEBIAN_FRONTEND=noninteractive apt-get --yes install git tox make python-all python3 python3-pip debhelper wget && \
- DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-all libssl-dev apt-utils && \
- DEBIAN_FRONTEND=noninteractive python3 -m pip install -U setuptools setuptools-version-command stdeb && \
- DEBIAN_FRONTEND=noninteractive apt-get --yes install libmysqlclient-dev mysql-client
-
- # needed for tests: libmysqlclient-dev mysql-client tox
+ DEBIAN_FRONTEND=noninteractive apt-get --yes install git tox make python3 python3-pip debhelper wget \
+ python3-all apt-utils libmysqlclient-dev mysql-client && \
+ DEBIAN_FRONTEND=noninteractive python3 -m pip install -U setuptools setuptools-version-command stdeb
+ # needed for tests: libmysqlclient-dev mysql-client tox
+ # TODO remove apt # libssl-dev
# TODO py3 comment
# Uncomment this block to generate automatically a debian package and show info
# # Set the working directory to /app
# # Copy the current directory contents into the container at /app
# ADD . /app
# CMD /app/devops-stages/stage-build.sh && find deb_dist -name "*.deb" -exec dpkg -I {} ";"
-
echo "Installing python dependencies via pip..."
# python3 -m pip install -U pip
-python3 -m pip install cherrypy==18.1.2
-
+python3 -m pip install -U "cherrypy==18.1.2" "cryptography>=2.5"
'jsonschema',
'PyYAML',
'requests',
- 'cryptography',
+ 'cryptography', # >=2.5 installed right version with the debian post-install script
'osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git#egg=osm-im',
"osm-ro-plugin @ git+https://osm.etsi.org/gerrit/osm/RO.git#egg=osm-ro-plugin&subdirectory=RO-plugin",
],
# apt-get install -y python-stdeb
python3 setup.py --command-packages=stdeb.command sdist_dsc
cp debian/python3-osm-ro.postinst deb_dist/osm-ro*/debian/
+ # cd deb_dist/osm-nbi*/debian && echo "cryptography python3-cryptography (>= 1.9)" > py3dist-overrides
cd deb_dist/osm-ro*/ && dpkg-buildpackage -rfakeroot -uc -us
# mkdir -p .build
# cp build/deb_dist/python-*.deb .build/
##
echo "POST INSTALL OSM-RO"
-# nothing to do
+# Ensure a proper version of cryptography, needed by paramiko
+python3 -m pip install "cryptography>=2.5" -U
"jsonschema",
"paramiko",
"mysqlclient",
- # "MySQLdb",
+
# common to VIMS
"requests",
"netaddr", # openstack, aws, vmware
mkdir -p deb_dist
# main RO module
-make -C RO clean package BRANCH=master
+make -C RO clean package
cp RO/deb_dist/python3-osm-ro_*.deb deb_dist/
# RO client
make -C RO-plugin clean package
cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/
+# NG-RO
+make -C NG-RO clean package
+cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/
+
# VIM plugings: vmware, openstack, AWS, fos, azure, Opennebula,
for vim_plugin in RO-VIM-*
do
&& python3 -m pip install --upgrade pip && python3 -m pip install pyangbind networking-l2gw
ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
-ARG RELEASE=ReleaseSIX-daily
+ARG RELEASE=ReleaseEIGHT-daily
ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
ARG REPOSITORY=testing
--no-cache Use if found problems looking for packages
--update Use to update OSM, RO docker with this image" && exit 0
-[[ "$*" == *--no-cache* ]] && no_cache="--no_cache" || no_cache=""
+[[ "$*" == *--no-cache* ]] && no_cache="--no-cache" || no_cache=""
[[ "$*" == *--update* ]] && update_osm="k8s" || update_osm=""
HERE=$(dirname $(readlink -f ${BASH_SOURCE[0]}))