1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +00:00

🔧 Use github container registry for notebooks

This commit is contained in:
Steffo 2021-10-21 04:26:55 +02:00
parent dadcc8d915
commit ac08504787
3 changed files with 20 additions and 2 deletions

View file

@ -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'),
),
]

View file

@ -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(

View file

@ -31,7 +31,7 @@ export function NotebookCreateBox({viewSet, resource}: NotebookCreateBoxProps):
const image =
useFormState<string>(
resource?.value.container_image ?? "steffo45/jupyterlab-docker-sophon",
resource?.value.container_image ?? "ghcr.io/steffo99/sophon-jupyter",
Validators.alwaysValid,
)