-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added neurodesk.yml configuration for TinyRange
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# TinyRange (https://github.com/tinyrange/tinyrange) configuration file for NeuroDesktop | ||
version: 1 | ||
oci_image: vnmd/neurodesktop:2024-10-22 | ||
commands: | ||
# Mount the shared storage. This part can fail non-fatally if the storage is not available. | ||
- mkdir /root/.ssh;ssh-keyscan host.internal > /root/.ssh/known_hosts | ||
- mkdir /share;echo password | sshfs -o allow_other -o password_stdin host.internal:/ /share | ||
- mkdir /neurodesktop-storage;mount --bind /share/neurodesktop-storage /neurodesktop-storage | ||
# Expose the fuse device to the container | ||
- chmod 777 /dev/fuse | ||
# Run the container entrypoint | ||
- start-notebook.py | ||
forward_ports: | ||
- "8888" | ||
min_spec: | ||
cpu: 2 | ||
memory: 4096 | ||
disk: 8192 |