This is an automated email from the ASF dual-hosted git repository.
dmysakovets pushed a commit to branch odahu-integration
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/odahu-integration by this push:
new d84f661 [odahu-integration] Bugfixing
d84f661 is described below
commit d84f6617ac9bac555411e5911ed1ee89cda35cf8
Author: Demyan Mysakovets <[email protected]>
AuthorDate: Wed Apr 15 20:54:15 2020 +0300
[odahu-integration] Bugfixing
---
infrastructure-provisioning/src/ssn/scripts/configure_docker.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
index aed455c..c7d0213 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
@@ -96,11 +96,10 @@ def login_in_gcr(os_user, gcr_creds, odahu_image,
dlab_path):
sys.exit(1)
try:
with open('/tmp/config', 'w') as f:
- f.write(base64.b64decode(gcr_creds) + "==")
+ f.write(base64.b64decode(gcr_creds))
local('scp -i {} /tmp/config {}:/tmp/config'.format(args.keyfile,
env.host_string, os_user))
sudo('mkdir /home/{}/.docker'.format(os_user))
sudo('cp /tmp/config /home/{}/.docker/config.json'.format(os_user))
- #sudo('cat /tmp/config | base64 --decode >
/home/{}/.docker/config.json'.format(os_user))
sudo('sed -i "s|ODAHU_IMAGE|{}|"
{}sources/infrastructure-provisioning/src/general/files/gcp/odahu_Dockerfile'.format(odahu_image,
dlab_path))
except Exception as err:
traceback.print_exc()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]