This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch EPMCDLAB-1186
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/EPMCDLAB-1186 by this push:
new 8f8dbea fixed issue with repository cert
8f8dbea is described below
commit 8f8dbea0b08574bb3c0a53c49fe422ce36cd8d26
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Fri Mar 1 20:02:47 2019 +0200
fixed issue with repository cert
---
infrastructure-provisioning/src/ssn/scripts/configure_docker.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
index 545527d..3bc5e0a 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
@@ -90,9 +90,10 @@ def build_docker_images(image_list, region, dlab_path):
if os.environ['local_repository_enabled'] == 'True':
update_repository(dlab_path, os.environ['local_repository_host'],
region)
if os.environ['local_repository_enabled'] == 'True':
- sudo('mkdir -p
{}sources/infrastructure-provisioning/src/base/certs'.format(args.dlab_path))
- put('/root/certs/repository.crt',
'{}sources/infrastructure-provisioning/src/base/certs/'
-
'repository.crt'.format(args.dlab_path), use_sudo=True)
+ if 'local_repository_cert_path' in os.environ:
+ sudo('mkdir -p
{}sources/infrastructure-provisioning/src/base/certs'.format(args.dlab_path))
+ put('/root/certs/repository.crt',
'{}sources/infrastructure-provisioning/src/base/certs/'
+
'repository.crt'.format(args.dlab_path), use_sudo=True)
for image in image_list:
name = image['name']
tag = image['tag']
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]