This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2411 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 9a63fc3733071f59f09404c428372d9e12b0b2ed Author: leonidfrolov <[email protected]> AuthorDate: Wed Jun 2 15:05:54 2021 +0300 [DATALAB-2411]: added dynamic definition of docker-ce version --- infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py index 1082050..98eb31a 100644 --- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py +++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py @@ -230,9 +230,9 @@ def ensure_docker_endpoint(): 'https://download.docker.com/linux/ubuntu ' '$(lsb_release -cs) stable"') conn.sudo('apt-get update') - conn.sudo('apt-cache policy docker-ce') + docker_version = conn.sudo("apt-cache policy docker-ce | grep Candidate | awk '{print $2}'").stdout.replace('\n','') conn.sudo('apt-get install -y docker-ce={}' - .format(args.docker_version)) + .format(docker_version)) if not exists(conn, '{}/tmp'.format(args.datalab_path)): conn.run('mkdir -p {}/tmp'.format(args.datalab_path)) conn.put('./daemon.json', --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
