You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added empty jupyter category in toml and install in Dockerfile
* Added jupyter instructions to the readme
* Added instructions on pre pulling jupyter image
* Correctly replace image name in README
If you already have an Oasis running you only need to change the image being pulled in
118
-
your `docker-compose.yaml` with `ghcr.io/FAIRmat-NFDI/nomad-distribution-template:main` for the services
121
+
your `docker-compose.yaml` with `ghcr.io/fairmat-nfdi/nomad-distribution-template:main` for the services
119
122
`worker`, `app`, `north`, and `logtransfer`.
120
123
121
124
If you want to use the `nomad.yaml` from this repository you also need to comment out
@@ -131,7 +134,7 @@ To run the new image you can follow steps 5. and 6. [above](#for-a-new-oasis).
131
134
132
135
## Adding a plugin
133
136
134
-
To add a new plugin to the docker image you should add it to the plugins table in the `pyproject.toml` file.
137
+
To add a new plugin to the docker image you should add it to the plugins table in the [`pyproject.toml`](pyproject.toml) file.
135
138
136
139
Here you can put either plugins distributed to PyPI, e.g.
137
140
@@ -172,6 +175,31 @@ plugins = [
172
175
Once the changes have been committed to the main branch, the new image will automatically
173
176
be generated.
174
177
178
+
## The Jupyter image
179
+
180
+
In addition to the Docker image for running the oasis, this repository also builds a custom NORTH image for running a jupyter hub with the installed plugins.
181
+
This image has been added to the [`configs/nomad.yaml`](configs/nomad.yaml) during the initialization of this repository and should therefore already be available in your Oasis under "Analyze / NOMAD Remote Tools Hub / jupyter"
182
+
183
+
The image is quite large and might cause a timeout the first time it is run. In order to avoid this you can pre pull the image with:
If you want additional python packages to be available to all users in the jupyter hub you can add those to the jupyter table in the [`pyproject.toml`](pyproject.toml):
190
+
191
+
```toml
192
+
[project.optional-dependencies]
193
+
jupyter = [
194
+
"voila",
195
+
"ipyaggrid",
196
+
"ipysheet",
197
+
"ipydatagrid",
198
+
"jupyter-flex",
199
+
]
200
+
```
201
+
202
+
175
203
## Updating the distribution from the template
176
204
177
205
In order to update an existing distribution with any potential changes in the template you can add a new `git remote` for the template and merge with that one while allowing for unrelated histories:
0 commit comments