From a9a655a8b293a8a4c148b93b6eb0eefaef83385d Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Fri, 8 Apr 2022 01:57:46 +0200 Subject: [PATCH] Fixes in the pouplate script. --- .../management/commands/core_app_populate.py | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py b/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py index eea9f97..a9b2f47 100644 --- a/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py +++ b/services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py @@ -291,7 +291,7 @@ to provide help, news and informations on your deployment. Or you can just ignor access_mode = 'ssh+cli', auth_mode = 'platform_keys', wms = None, - conf = {'host': 'standaloneworker', 'user': 'testuser'}, # TODO: use a dedicated user? + conf = {'host': 'standaloneworker', 'user': 'rosetta'}, container_engines = ['podman','singularity']) # Add testuser extra conf for this computing resource @@ -336,7 +336,7 @@ to provide help, news and informations on your deployment. Or you can just ignor for computing in demo_computing_resources: - # Demo shared computing plus conf + # Demo shared storage Storage.objects.create(computing = computing, access_through_computing = True, name = 'Shared', @@ -346,7 +346,7 @@ to provide help, news and informations on your deployment. Or you can just ignor base_path = '/shared/data/shared', bind_path = '/storages/shared') - # Demo shared computing plus conf + # Demo personal storage Storage.objects.create(computing = computing, access_through_computing = True, name = 'Personal', @@ -355,7 +355,24 @@ to provide help, news and informations on your deployment. Or you can just ignor auth_mode = 'user_keys', base_path = '/shared/data/users/$SSH_USER', bind_path = '/storages/personal') - + + + try: + demo_standalone_computing = Computing.objects.get(name='Demo Standalone Platform') + demo_computing_resources.append(demo_standalone_computing) + + # Demo personal storage + Storage.objects.create(computing = computing, + access_through_computing = True, + name = 'Personal', + type = 'generic_posix', + access_mode = 'ssh+cli', + auth_mode = 'user_keys', + base_path = '/shared/data/users/$SSH_USER', + bind_path = '/storages/personal') + + except: + pass -- GitLab