Skip to content

Commit a239c0b

Browse files
committed
Merge pull request #246 from casperdcl/master
2 parents fa59c67 + c5da56a commit a239c0b

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.devcontainer.json renamed to .devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"hostRequirements": {
44
"cpus": 2,
55
"memory": "8gb",
6-
"storage": "32gb",
7-
"gpu": "optional"
6+
"storage": "32gb"
87
},
98
"name": "SIRF-Exercises",
109
//"initializeCommand": "docker system prune --all --force",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// format: https://aka.ms/devcontainer.json
2+
{
3+
"hostRequirements": {
4+
"cpus": 2,
5+
"memory": "8gb",
6+
"storage": "32gb",
7+
"gpu": {"cores": 100, "storage": "2gb"}
8+
},
9+
"runArgs": ["--gpus=all"],
10+
"name": "SIRF-Exercises",
11+
//"initializeCommand": "docker system prune --all --force",
12+
"image": "ghcr.io/synerbi/sirf:petric",
13+
/// use image's entrypoint & user
14+
"overrideCommand": false,
15+
//"postStartCommand": "nohup bash -c 'gadgetron >& /tmp/gadgetron.log &'" // already done in image
16+
"remoteUser": "jovyan",
17+
"portsAttributes": {"8888": {"label": "Jupyter", "onAutoForward": "ignore"}},
18+
"postCreateCommand": "bash ./scripts/download_data.sh -m -p && sed -i /astra-toolbox/d environment.yml && mamba env update",
19+
// "features": {}, // https://containers.dev/features
20+
"customizations": {"vscode": {"extensions": [
21+
"ms-python.python",
22+
"ms-toolsai.jupyter",
23+
"ms-python.vscode-pylance"]}}
24+
}

DocForParticipants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The free allocation should be enough to get you familiar with SIRF.
7575
Note that the creation of the codespace will take around 5 minutes. This includes creation of the container,
7676
installation of all dependencies and downloading the example data.
7777

78-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/SyneRBI/SIRF-Exercises)
78+
[![CPU Codespace](https://img.shields.io/badge/Codespaces-CPU-blue?logo=github)](https://codespaces.new/SyneRBI/SIRF-Exercises) [![GPU Codespace](https://img.shields.io/badge/Codespaces-GPU-green?logo=github)](https://codespaces.new/SyneRBI/SIRF-Exercises?devcontainer_path=.devcontainer%2Fgpu%2Fdevcontainer.json&geo=UsEast&machine=standardLinuxNcv3)
7979

8080
Some notes:
8181
- You will have to select a Python kernel for each notebook (top-right). Please use the existing `conda` python kernel (**not** `/usr/bin/python3`) listed in "Python environments". Alternatively, you can access the jupyter server running in the codespace via [port forwarding](https://docs.github.com/en/codespaces/developing-in-a-codespace/forwarding-ports-in-your-codespace).

0 commit comments

Comments
 (0)