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
dee5a857
Commit
dee5a857
authored
4 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes in model fields attributes and the populate script.
parent
444b121c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py
+5
-5
5 additions, 5 deletions
...rosetta/core_app/management/commands/core_app_populate.py
services/webapp/code/rosetta/core_app/models.py
+1
-1
1 addition, 1 deletion
services/webapp/code/rosetta/core_app/models.py
with
6 additions
and
6 deletions
services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py
+
5
−
5
View file @
dee5a857
...
...
@@ -58,7 +58,7 @@ class Command(BaseCommand):
supports_user_auth
=
False
,
supports_pass_auth
=
True
)
# BasicMetaDesktop
Singularity
(sarusso repo)
# BasicMetaDesktop
Docker
(sarusso repo)
Container
.
objects
.
create
(
user
=
None
,
name
=
'
BasicMetaDesktop latest
'
,
image
=
'
sarusso/basicmetadesktop
'
,
...
...
@@ -70,11 +70,11 @@ class Command(BaseCommand):
supports_pass_auth
=
True
)
# DevMetaDesktop
Singularity
(sarusso repo)
# DevMetaDesktop
Docker
(sarusso repo)
Container
.
objects
.
create
(
user
=
None
,
name
=
'
DevMetaDesktop latest
'
,
image
=
'
sarusso/devmetadesktop
'
,
type
=
'
singularity
'
,
type
=
'
docker
'
,
registry
=
'
docker_hub
'
,
ports
=
'
8590
'
,
supports_dynamic_ports
=
True
,
...
...
@@ -150,7 +150,7 @@ class Command(BaseCommand):
else
:
print
(
'
Creating testuser private containers...
'
)
# Ju
P
yter Singularity
# Ju
p
yter Singularity
Container
.
objects
.
create
(
user
=
testuser
,
name
=
'
Jupyter Notebook latest
'
,
image
=
'
jupyter/base-notebook
'
,
...
...
@@ -161,7 +161,7 @@ class Command(BaseCommand):
supports_user_auth
=
False
,
supports_pass_auth
=
False
)
# Ju
P
yter Docker
# Ju
p
yter Docker
Container
.
objects
.
create
(
user
=
testuser
,
name
=
'
Jupyter Notebook latest
'
,
image
=
'
jupyter/base-notebook
'
,
...
...
This diff is collapsed.
Click to expand it.
services/webapp/code/rosetta/core_app/models.py
+
1
−
1
View file @
dee5a857
...
...
@@ -74,7 +74,7 @@ class LoginToken(models.Model):
class
Container
(
models
.
Model
):
uuid
=
models
.
UUIDField
(
primary_key
=
True
,
default
=
uuid
.
uuid4
,
editable
=
False
)
user
=
models
.
ForeignKey
(
User
,
related_name
=
'
+
'
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
user
=
models
.
ForeignKey
(
User
,
related_name
=
'
+
'
,
on_delete
=
models
.
CASCADE
,
blank
=
True
,
null
=
True
)
# If a container has no user, it will be available to anyone. Can be created, edited and deleted only by admins.
name
=
models
.
CharField
(
'
Container Name
'
,
max_length
=
255
,
blank
=
False
,
null
=
False
)
...
...
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