diff --git a/README.md b/README.md index 50bbf31..50e4a1d 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,10 @@ Deployment $ python setup.py sdist bdist_wheel $ twine upload dist/netkiller-devops-x.x.x.tar.gz +指定镜像 + + $ pip3 install netkiller-devops --upgrade -i https://pypi.org/project + Backup ------ [Data backup tools](https://github.com/netkiller/devops/blob/master/doc/backup.md). diff --git a/netkiller/docker.py b/netkiller/docker.py index d3cb7a8..f70a3d3 100644 --- a/netkiller/docker.py +++ b/netkiller/docker.py @@ -436,12 +436,8 @@ def services(self, obj): if isinstance(obj, Services): if obj.dockerfile: self.dockerfile[obj.name] = obj.dockerfile - service = obj.service.copy() - # service = dict(obj.service) - # service = copy.deepcopy(obj.service) - # obj.dump() + service = copy.deepcopy(obj.service) self.compose["services"].update(service) - # print(self.compose["services"]) return self def networks(self, obj): diff --git a/setup.py b/setup.py index a9084ea..51bd0a9 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="netkiller-devops", - version="0.7.3", + version="0.7.4", author="Neo Chen", author_email="netkiller@msn.com", description="DevOps of useful deployment and automation",