[odahu-integration] Bugfixing
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
index 73111f1..284d796 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
@@ -95,12 +95,10 @@
print('Failed to install gcloud: ', str(err))
sys.exit(1)
try:
- #with open('/tmp/config', 'w') as f:
- # f.write(gcr_creds)
- #local('scp -i {} /tmp/config {}:/tmp/config'.format(args.keyfile, env.host_string))
- sudo('mkdir /home/{}/.docker'.format(os_user))
- with open('/home/{}/.docker/config.json'.format(os_user), 'w') as f:
+ with open('/tmp/config', 'w') as f:
f.write(base64.b64decode(gcr_creds) + "==")
+ sudo('mkdir /home/{}/.docker'.format(os_user))
+ local('scp -i {} /tmp/config {}:/home/{}/.docker/config.json'.format(args.keyfile, env.host_string, os_user))
#sudo('cat /tmp/config')
#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))