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/06/08 08:35:16 UTC

[incubator-datalab] branch DATALAB-2314-lfr created (now a8bd3b2)

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

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


      at a8bd3b2  [DATALAB-2314]: changed what jars are downloaded during endpoint deployment

This branch includes the following new commits:

     new a8bd3b2  [DATALAB-2314]: changed what jars are downloaded during endpoint deployment

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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


[incubator-datalab] 01/01: [DATALAB-2314]: changed what jars are downloaded during endpoint deployment

Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a8bd3b2b25f92a91766b9c02018f241e89bbc6e7
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Jun 8 11:32:31 2021 +0300

    [DATALAB-2314]: changed what jars are downloaded during endpoint deployment
---
 .../terraform/bin/deploy/endpoint_fab.py           | 26 ++++++++++++----------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 98eb31a..f1438cb 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -589,22 +589,22 @@ def ensure_jar_endpoint():
             web_path = '{}/webapp'.format(args.datalab_path)
             if not exists(conn, web_path):
                 conn.run('mkdir -p {}'.format(web_path))
-            if 'Failed' in conn.run('wget -P {}  --user={} --password={} '
-                     'https://{}/repository/packages/provisioning-service-'
-                     '2.4.jar --no-check-certificate 2>&1 | tee /tmp/tee.tmp; if grep -w -i -E  "ERROR|Failed" /tmp/tee.tmp; then echo -e "==============\nFailed jar download.\n=============="; fi'
+            if 'Failed' in conn.run('wget -P {0}  --user={1} --password={2} '
+                     'https://{3}/repository/packages/{4}/provisioning-service-'
+                     '{4}.jar --no-check-certificate 2>&1 | tee /tmp/tee.tmp; if grep -w -i -E  "ERROR|Failed" /tmp/tee.tmp; then echo -e "==============\nFailed jar download.\n=============="; fi'
                      .format(web_path, args.repository_user,
-                             args.repository_pass, args.repository_address)).stdout:
+                             args.repository_pass, args.repository_address, args.release_tag)).stdout:
                 sys.exit(1)
-            conn.run('mv {0}/provisioning-service-2.4.jar {0}/provisioning-service.jar'
-                     .format(web_path))
-            if 'Failed' in conn.run('wget -P {}  --user={} --password={} '
-                     'https://{}/repository/packages/billing-{}-'
-                     '2.4.jar --no-check-certificate 2>&1 | tee /tmp/tee.tmp; if grep -w -i -E  "ERROR|Failed" /tmp/tee.tmp; then echo -e "==============\nFailed jar download.\n=============="; fi'
+            conn.run('mv {0}/provisioning-service-{1}.jar {0}/provisioning-service.jar'
+                     .format(web_path, args.release_tag))
+            if 'Failed' in conn.run('wget -P {0}  --user={1} --password={2} '
+                     'https://{3}/repository/packages/{5}/billing-{4}-'
+                     '{5}.jar --no-check-certificate 2>&1 | tee /tmp/tee.tmp; if grep -w -i -E  "ERROR|Failed" /tmp/tee.tmp; then echo -e "==============\nFailed jar download.\n=============="; fi'
                      .format(web_path, args.repository_user,
-                             args.repository_pass, args.repository_address, args.cloud_provider)).stdout:
+                             args.repository_pass, args.repository_address, args.cloud_provider, args.release_tag)).stdout:
                 sys.exit(1)
-            conn.run('mv {0}/billing-{1}-2.4.jar {0}/billing.jar'
-                     .format(web_path, args.cloud_provider))
+            conn.run('mv {0}/billing-{1}-{2}.jar {0}/billing.jar'
+                     .format(web_path, args.cloud_provider, args.release_tag))
             conn.sudo('touch {}'.format(ensure_file))
     except Exception as err:
         logging.error('Failed to download jar-provisioner: ', str(err))
@@ -988,6 +988,8 @@ def init_args():
     parser.add_argument('--repository_port', type=str, default='')
     parser.add_argument('--repository_user', type=str, default='')
     parser.add_argument('--repository_pass', type=str, default='')
+    parser.add_argument('--release_tag', type=str,
+                        default='2.5-preview1')
     parser.add_argument('--docker_version', type=str,
                         default='5:20.10.6~3-0~ubuntu-bionic')
     parser.add_argument('--ssn_bucket_name', type=str, default='')

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