forked from Deep-MI/FastSurfer
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.23 KB
/
docker_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: FastSurfer Docker Image Build
on:
# push:
# branches: [ "dev" ]
# pull_request:
# branches: [ "dev" ]
# Manual
workflow_dispatch:
jobs:
build:
runs-on: dirac
steps:
# Checkout repo
- uses: actions/checkout@v4
# Set up Python 3.10
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Build GPU FastSurfer Image
run: |
PYTHONPATH=$PYTHONPATH
python3 Docker/build.py --device cuda --tag my_fastsurfer:cuda
- name: Run FastSurfer
run: |
docker run --gpus all -v $RUNNER_FS_MRI_DATA:/data \
-v $RUNNER_FS_OUTPUT:/output \
-v $FREESURFER_HOME:/fs_license \
--rm --user $(id -u):$(id -g) my_fastsurfer:cuda \
--fs_license /fs_license/license.txt \
--t1 /data/subjectx/orig.mgz \
--sid subjectx --sd /output \
--parallel