Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ExaCT
Rosetta
Commits
a9a655a8
Commit
a9a655a8
authored
3 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Fixes in the pouplate script.
parent
8994e26f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py
+21
-4
21 additions, 4 deletions
...rosetta/core_app/management/commands/core_app_populate.py
with
21 additions
and
4 deletions
services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py
+
21
−
4
View file @
a9a655a8
...
@@ -291,7 +291,7 @@ to provide help, news and informations on your deployment. Or you can just ignor
...
@@ -291,7 +291,7 @@ to provide help, news and informations on your deployment. Or you can just ignor
access_mode
=
'
ssh+cli
'
,
access_mode
=
'
ssh+cli
'
,
auth_mode
=
'
platform_keys
'
,
auth_mode
=
'
platform_keys
'
,
wms
=
None
,
wms
=
None
,
conf
=
{
'
host
'
:
'
standaloneworker
'
,
'
user
'
:
'
testuser
'
},
# TODO: use a dedicated user?
conf
=
{
'
host
'
:
'
standaloneworker
'
,
'
user
'
:
'
rosetta
'
},
container_engines
=
[
'
podman
'
,
'
singularity
'
])
container_engines
=
[
'
podman
'
,
'
singularity
'
])
# Add testuser extra conf for this computing resource
# 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
...
@@ -336,7 +336,7 @@ to provide help, news and informations on your deployment. Or you can just ignor
for
computing
in
demo_computing_resources
:
for
computing
in
demo_computing_resources
:
# Demo shared
computing plus conf
# Demo shared
storage
Storage
.
objects
.
create
(
computing
=
computing
,
Storage
.
objects
.
create
(
computing
=
computing
,
access_through_computing
=
True
,
access_through_computing
=
True
,
name
=
'
Shared
'
,
name
=
'
Shared
'
,
...
@@ -346,7 +346,7 @@ to provide help, news and informations on your deployment. Or you can just ignor
...
@@ -346,7 +346,7 @@ to provide help, news and informations on your deployment. Or you can just ignor
base_path
=
'
/shared/data/shared
'
,
base_path
=
'
/shared/data/shared
'
,
bind_path
=
'
/storages/shared
'
)
bind_path
=
'
/storages/shared
'
)
# Demo
shared computing plus conf
# Demo
personal storage
Storage
.
objects
.
create
(
computing
=
computing
,
Storage
.
objects
.
create
(
computing
=
computing
,
access_through_computing
=
True
,
access_through_computing
=
True
,
name
=
'
Personal
'
,
name
=
'
Personal
'
,
...
@@ -357,6 +357,23 @@ to provide help, news and informations on your deployment. Or you can just ignor
...
@@ -357,6 +357,23 @@ to provide help, news and informations on your deployment. Or you can just ignor
bind_path
=
'
/storages/personal
'
)
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment