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/02/25 07:45:41 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: changed maven download

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


The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
     new 550bb55  [DATALAB-2091]: changed maven download
550bb55 is described below

commit 550bb55cbc697e373b977852a9ed6410e43dc23c
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Feb 25 09:45:26 2021 +0200

    [DATALAB-2091]: changed maven download
---
 infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
index 5a302e6..53e1bc0 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -374,11 +374,10 @@ def install_build_dep():
         if not exists(datalab.fab.conn,'{}tmp/build_dep_ensured'.format(os.environ['ssn_datalab_path'])):
             maven_version = '3.5.4'
             manage_pkg('-y install', 'remote', 'openjdk-8-jdk git wget unzip')
-            datalab.fab.conn.sudo(
-                    'cd /opt/ && wget http://mirrors.sonic.net/apache/maven/maven-{0}/{1}/binaries/apache-maven-{1}-bin.zip'.format(
+            datalab.fab.conn.run(
+                    'cd /opt/ && sudo wget http://mirrors.sonic.net/apache/maven/maven-{0}/{1}/binaries/apache-maven-{1}-bin.zip '
+                    '&& sudo unzip apache-maven-{1}-bin.zip && sudo mv apache-maven-{1} maven'.format(
                         maven_version.split('.')[0], maven_version))
-            datalab.fab.conn.sudo('cd /opt/ && unzip apache-maven-{}-bin.zip'.format(maven_version))
-            datalab.fab.conn.sudo('cd /opt/ && mv apache-maven-{} maven'.format(maven_version))
             datalab.fab.conn.sudo('bash -c "curl --silent --location https://deb.nodesource.com/setup_15.x | bash -"')
             manage_pkg('-y install', 'remote', 'nodejs')
             datalab.fab.conn.sudo('npm config set unsafe-perm=true')


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