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 0f6b6b56c9f77d8b16aa85a3f73cb829102acdde..eea9f9764e626aac81422a6e87512d1f4ee80b23 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 @@ -280,8 +280,20 @@ to provide help, news and informations on your deployment. Or you can just ignor auth_mode = 'user_keys', wms = None, conf = {'host': 'standaloneworker'}, - container_engines = ['singularity','podman']) - + container_engines = ['podman','singularity']) + + # Demo standalone platform computing plus conf + demo_singlenode_computing = Computing.objects.create(name = 'Demo Standalone Platform', + description = 'A demo standalone computing resource access as platform.', + type = 'standalone', + arch = 'amd64', + supported_archs = ['386'], + access_mode = 'ssh+cli', + auth_mode = 'platform_keys', + wms = None, + conf = {'host': 'standaloneworker', 'user': 'testuser'}, # TODO: use a dedicated user? + container_engines = ['podman','singularity']) + # Add testuser extra conf for this computing resource testuser.profile.add_extra_conf(conf_type = 'computing_user', object=demo_singlenode_computing, value= 'testuser')