You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/03/26 11:07:22 UTC

[incubator-datalab] 01/05: [DATALAB-2091]: removed manage_pkg as it can not be found

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit da9dd196f59ab80a25f3d125c671e15a49be8603
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Mar 26 13:05:02 2021 +0200

    [DATALAB-2091]: removed manage_pkg as it can not be found
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 566d44e..a0e145c 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -251,9 +251,11 @@ def configure_docker(os_user):
             conn.sudo('curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -')
             conn.sudo('add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) \
                   stable"')
-            manage_pkg('update', 'remote', '')
+            #datalab.common_lib.manage_pkg('update', 'remote', '')
+            conn.sudo('apt-get update')
             conn.sudo('apt-cache policy docker-ce')
-            manage_pkg('-y install', 'remote', 'docker-ce=5:{}~3-0~ubuntu-focal'.format(docker_version))
+            #datalab.common_lib.manage_pkg('-y install', 'remote', 'docker-ce=5:{}~3-0~ubuntu-focal'.format(docker_version))
+            conn.sudo('apt-get install -y docker-ce=5:{}~3-0~ubuntu-focal'.format(docker_version))
             conn.sudo('touch /home/{}/.ensure_dir/docker_ensured'.format(os_user))
     except Exception as err:
         print('Failed to configure Docker:', str(err))
@@ -327,8 +329,8 @@ def ensure_jupyterlab_files(os_user, jupyterlab_dir, jupyterlab_image, jupyter_c
 #            conn.sudo('cp -r {}sdk {}sdk'.format(legion_dir, jupyterlab_dir))
 #            conn.sudo('cp -r {}toolchains/python {}toolchains_python'.format(legion_dir, jupyterlab_dir))
 #            conn.sudo('cp -r {}cli {}cli'.format(legion_dir, jupyterlab_dir))
-        except:
-           sys.exit(1)
+        except Exception as err:
+            print('Error:', str(err))
     else:
         try:
             conn.sudo(

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org