From e22e10e5aa858fe36db2580e072e5b53957117e9 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Thu, 18 Feb 2021 17:24:44 +0100 Subject: Change python baseOS img to integration-python Moved setting PYTHONPATH and PATH to Dockerfile as thats where python version is defined (baseOS image) Switched hardcoded python3.8 to python3. psycopg is recommended to be built from source for production use, yet CI environment does not have the dependencies to build it. To circumvent that, requirements were split into: - requirements-common.txt that should be included for each environment - requirements-docker.txt that force building of psycopg in docker - requirements.txt that use psycopg-binary for ci purposes Benefits from switching over: * minimal {java11,python} images maintained by integration team * using currently "blessed by seccom" versions (:latest tag used) * should limit spread of legal issues across layers * integration images will be the first to have automated compliance documentation * should limit spread of base layers (contributing to deployment footprint - more base layers = more to download, more to store etc...) Issue-ID: INT-1864 Issue-ID: DCAEGEN2-2420 Signed-off-by: Alexander Mazuruk Change-Id: I77be2fd9dd53613a1a6ad26f8f0b506073f1cca6 --- requirements.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index d72592f..cbc91a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,2 @@ -requests==2.23.0 -onap_dcae_cbs_docker_client==1.0.1 -six==1.15.0 -PyYAML==5.4 -httplib2==0.19.0 -HTTPretty==1.0.5 -pyOpenSSL==20.0.1 -Wheel==0.36.2 +-r requirements-common.txt psycopg2-binary==2.8.6 -- cgit 1.2.3-korg