diff --git a/backend/sophon/notebooks/migrations/0013_alter_notebook_container_image.py b/backend/sophon/notebooks/migrations/0013_alter_notebook_container_image.py new file mode 100644 index 0000000..4a694f0 --- /dev/null +++ b/backend/sophon/notebooks/migrations/0013_alter_notebook_container_image.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.7 on 2021-10-21 02:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('notebooks', '0012_alter_notebook_internal_url'), + ] + + operations = [ + migrations.AlterField( + model_name='notebook', + name='container_image', + field=models.CharField(choices=[('ghcr.io/steffo99/sophon-jupyter', 'Python (Sophonic)')], default='steffo45/jupyterlab-docker-sophon', + help_text='The Docker image to run for this notebook.', max_length=256, verbose_name='Docker image'), + ), + ] diff --git a/backend/sophon/notebooks/models.py b/backend/sophon/notebooks/models.py index aafd99d..c2846a3 100644 --- a/backend/sophon/notebooks/models.py +++ b/backend/sophon/notebooks/models.py @@ -83,7 +83,7 @@ class Notebook(SophonGroupModel): # ("jupyter/r-notebook", "Python + R"), # ("jupyter/pyspark-notebook", "Python (Scientific) + Apache Spark"), # ("jupyter/all-spark-notebook", "Python (Scientific) + Scala + R + Apache Spark"), - ("steffo45/jupyterlab-docker-sophon", "Python (Sophonic)"), + ("ghcr.io/steffo99/sophon-jupyter", "Python (Sophonic)"), ) container_image = models.CharField( diff --git a/frontend/src/components/notebook/NotebookCreateBox.tsx b/frontend/src/components/notebook/NotebookCreateBox.tsx index edabd9b..e2645db 100644 --- a/frontend/src/components/notebook/NotebookCreateBox.tsx +++ b/frontend/src/components/notebook/NotebookCreateBox.tsx @@ -31,7 +31,7 @@ export function NotebookCreateBox({viewSet, resource}: NotebookCreateBoxProps): const image = useFormState( - resource?.value.container_image ?? "steffo45/jupyterlab-docker-sophon", + resource?.value.container_image ?? "ghcr.io/steffo99/sophon-jupyter", Validators.alwaysValid, )