From 5f79d8dad13a3e179e804780035386bbc16724cc Mon Sep 17 00:00:00 2001 From: Neurodesk Github Action Runner Date: Thu, 10 Oct 2024 04:28:13 +0000 Subject: [PATCH] try binary build --- recipes/dsistudio/build.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/recipes/dsistudio/build.sh b/recipes/dsistudio/build.sh index 5b25ee01..1b0c0db6 100644 --- a/recipes/dsistudio/build.sh +++ b/recipes/dsistudio/build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e export toolName='dsistudio' -export toolVersion='hou.2024.10.02' +export toolVersion='2024.06.12' # Check latest version here - replace dashes with dots # https://hub.docker.com/r/dsistudio/dsistudio/tags @@ -16,12 +16,19 @@ source ../main_setup.sh dockerHubName=`echo $toolVersion | tr '.' '-'` neurodocker generate ${neurodocker_buildMode} \ - --base-image dsistudio/dsistudio:$dockerHubName \ + --base-image ubuntu:22.04 \ --pkg-manager apt \ --env DEBIAN_FRONTEND=noninteractive \ --run="printf '#!/bin/bash\nls -la' > /usr/bin/ll" \ --run="chmod +x /usr/bin/ll" \ --run="mkdir -p ${mountPointList}" \ + --install opts=--quiet wget unzip libqt6charts6-dev libglu1-mesa \ + --workdir /opt \ + --run="wget https://github.com/frankyeh/DSI-Studio/releases/download/${toolVersion}/dsi_studio_ubuntu2204.zip \ + && unzip dsi_studio_ubuntu2204.zip \ + && rm dsi_studio_ubuntu2204.zip" \ + --env QT_QPA_PLATFORM=xcb \ + --env PATH='$PATH':/opt/dsi-studio \ --env DEPLOY_BINS=dsi_studio \ --copy README.md /README.md \ > ${toolName}_${toolVersion}.Dockerfile @@ -29,3 +36,6 @@ neurodocker generate ${neurodocker_buildMode} \ if [ "$1" != "" ]; then ./../main_build.sh fi + +# Troubleshoot QT problems: +# export QT_DEBUG_PLUGINS=1 \ No newline at end of file