This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-408
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-408 by this push:
new 8744787 [DATALAB-408]: added command execution under sudo
8744787 is described below
commit 87447876cdb0ae432de60f60a533aa608b8e8934
Author: leonidfrolov <[email protected]>
AuthorDate: Wed Aug 4 15:31:55 2021 +0300
[DATALAB-408]: added command execution under sudo
---
infrastructure-provisioning/scripts/deploy_datalab.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/infrastructure-provisioning/scripts/deploy_datalab.py
b/infrastructure-provisioning/scripts/deploy_datalab.py
index fd7b809..f1442de 100644
--- a/infrastructure-provisioning/scripts/deploy_datalab.py
+++ b/infrastructure-provisioning/scripts/deploy_datalab.py
@@ -209,12 +209,12 @@ def build_docker_images(args):
if args.conf_repository_user and args.conf_repository_pass and
args.conf_repository_address:
subprocess.run( 'sudo docker login -u {0} -p {1} {2}:8083'
.format(args.conf_repository_user,
args.conf_repository_pass, args.conf_repository_address), shell=True,
check=True)
- subprocess.run('docker pull
{}:8083/docker.datalab-base-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
- subprocess.run('docker image tag {}:8083/docker.datalab-base-{}
docker.datalab-base'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
- subprocess.run('docker image rm
{}:8083/docker.datalab-base-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
- subprocess.run('docker pull
{}:8083/docker.datalab-ssn-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
- subprocess.run('docker image tag {}:8083/docker.datalab-ssn-{}
docker.datalab-ssn'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
- subprocess.run('docker image rm
{}:8083/docker.datalab-ssn-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
+ subprocess.run('sudo docker pull
{}:8083/docker.datalab-base-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
+ subprocess.run('sudo docker image tag {}:8083/docker.datalab-base-{}
docker.datalab-base'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
+ subprocess.run('sudo docker image rm
{}:8083/docker.datalab-base-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
+ subprocess.run('sudo docker pull
{}:8083/docker.datalab-ssn-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
+ subprocess.run('sudo docker image tag {}:8083/docker.datalab-ssn-{}
docker.datalab-ssn'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
+ subprocess.run('sudo docker image rm
{}:8083/docker.datalab-ssn-{}'.format(args.conf_repository_address,
args.conf_cloud_provider), shell=True, check=True)
else:
# Building base and ssn docker images
subprocess.run('cd {2}; sudo docker build --build-arg OS={0}
--build-arg SRC_PATH="infrastructure-provisioning/src/" --file '
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]