Skip to content

Commit

Permalink
update and pinned python=3.9 wxpython=4.1.1 and toolbox=6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Jan 8, 2025
1 parent 96e3cfe commit ac908b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update -y && \
net-tools \
openbox \
procps \
python3.8 \
python3.9 \
python3-pip \
supervisor \
tigervnc-standalone-server \
Expand Down Expand Up @@ -51,14 +51,14 @@ ENV LANG=C.UTF-8

FROM base AS production

# TODO: Change according to your needs
RUN apt-get update -y && \
apt-get install -y curl bzip2 libglib2.0-0 gcc menu libsdl1.2debian libsdl2-2.0-0 freeglut3 libgtk2.0-0 libnotify4 && \
rm -rf /var/lib/apt/lists

# Install sct
RUN git clone https://github.com/spinalcordtoolbox/spinalcordtoolbox.git sct && \
cd sct && \
git checkout cae52ada6e4c7ec8c7e7fd8a8d05a2d2dfa1288f && \
./install_sct -y

ENV PATH="/sct/bin:${PATH}"
Expand All @@ -68,7 +68,7 @@ ENV SCT_DIR=/sct
# Install FSLeyes (for GUI part) in a new virtual environment

RUN pip install virtualenv
RUN virtualenv -p python3.8 /sct/fsleyes_env && \
RUN virtualenv -p python3.9 /sct/fsleyes_env && \
. /sct/fsleyes_env/bin/activate && \
pip install --upgrade pip && \
pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04 wxpython==4.1.1 && \
Expand Down
2 changes: 1 addition & 1 deletion app/config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ priority=1
environment=DISPLAY=:0
directory=/home/scu/work
# TODO: Change according to you needs
command=/sct/fsleyes_env/bin/fsleyes --runscript /sct/contrib/fsl_integration/sct_plugin.py --scene default
command=/sct/fsleyes_env/bin/fsleyes --runscript /sct/contrib/fsl_integration/sct_fsleyes_script.py --scene default
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
Expand Down

0 comments on commit ac908b1

Please sign in to comment.