Update obsolete docker python version 49/93449/2
authorAndrew Gauld <agauld@att.com>
Tue, 13 Aug 2019 13:38:28 +0000 (13:38 +0000)
committerAndrew Gauld <agauld@att.com>
Tue, 13 Aug 2019 20:11:40 +0000 (20:11 +0000)
Issue-ID: DCAEGEN2-1725
Change-Id: I056b96a700e403fccf3ed8464b170dda33957cb5
Signed-off-by: Andrew Gauld <agauld@att.com>
dcae-cli/ChangeLog.md
dcae-cli/dcae_cli/_version.py
dcae-cli/dcae_cli/util/docker_util.py
dcae-cli/pom.xml
dcae-cli/requirements.txt [deleted file]
dcae-cli/setup.py
dcae-cli/tox.ini

index e5be3a6..ffeaf80 100644 (file)
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/) 
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## [2.11.2]
+
+* Upgrade to use docker 4.x.x from docker-py 1.x.x
+
 ## [2.11.1]
 
 * Change to policy reconfiguration functions to pass consul_host as a parameter
index a0e51bf..34e254c 100644 (file)
@@ -19,4 +19,4 @@
 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
 
 # -*- coding: utf-8 -*-
-__version__ = "2.11.1"
+__version__ = "2.11.2"
index 3e29f5c..90a6811 100644 (file)
@@ -85,7 +85,7 @@ def get_docker_client(profile, logins=[]):
 
 def image_exists(image):
     '''Returns True if the image exists locally'''
-    client = docker.from_env(version="auto")
+    client = docker.APIClient(version="auto", **docker.utils.kwargs_from_env())
     return True if client.images(image) else False
 
 
index e9a5a91..3845c47 100644 (file)
@@ -27,7 +27,7 @@ limitations under the License.
   <groupId>org.onap.dcaegen2.platform.cli</groupId>
   <artifactId>dcae-cli</artifactId>
   <name>dcaegen2-platform-cli-dcae-cli</name>
-  <version>2.11.1</version>
+  <version>2.11.2</version>
   <url>http://maven.apache.org</url>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
diff --git a/dcae-cli/requirements.txt b/dcae-cli/requirements.txt
deleted file mode 100644 (file)
index 4ca45e2..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-certifi==2018.4.16
-chardet==3.0.4
-click==6.7
-docker-py==1.10.6
-docker-pycreds==0.3.0
-genson==1.0.1
-idna==2.7
-jsonschema==2.6.0
--e git+ssh://researchmike@gerrit.onap.org:29418/dcaegen2/platform/cli@4f039724360fbf13a8295c2074180fa5c9c0320b#egg=onap_dcae_cli&subdirectory=dcae-cli
-onap-dcae-discovery-client==2.1.0
-onap-dcae-dockering==1.4.0
-psycopg2==2.7.5
-psycopg2-binary==2.7.5
-python-consul==0.7.2
-requests==2.19.1
-six==1.11.0
-SQLAlchemy==1.2.10
-SQLAlchemy-Utils==0.33.3
-terminaltables==3.1.0
-urllib3==1.23
-websocket-client==0.48.0
index 7211700..b0c3899 100644 (file)
@@ -53,7 +53,7 @@ setup(
                       'psycopg2-binary==2.7.5',
                       'genson',
                       'onap-dcae-discovery-client>=2.0.0',
-                      'onap-dcae-dockering>=1.0.0,<2.0.0'
+                      'onap-dcae-dockering>=1.4.1,<2.0.0'
                       ],
     tests_require=['pytest',
                    'mock'],
index 5c62fe9..87ea7c9 100644 (file)
@@ -1,6 +1,6 @@
 # content of: tox.ini , put in same dir as setup.py
 [tox]
-envlist = py27,py35
+envlist = py27,py36
 
 [testenv]
 deps=