Skip to content

Commit 2382730

Browse files
committed
chmod matlab
1 parent d2f1a80 commit 2382730

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ services:
5656
# Mount license file
5757
- ./licenses:/licenses:ro
5858
# Note: COBRA Toolbox and VMH revamped are now installed in the image, not mounted
59+
# Writable directory for MATLAB to create temporary data files
60+
- matlab_data:/matlab/data
5961
shm_size: 512M
6062
# Restart on failure but not on manual stop or successful exit
6163
restart: on-failure
@@ -68,4 +70,5 @@ services:
6870

6971
volumes:
7072
staticfiles:
73+
matlab_data:
7174

docker/matlab/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN python3 -m pip install --break-system-packages flask
2323
# Create directories for MATLAB scripts and toolboxes
2424
RUN mkdir -p /matlab/scripts
2525
RUN mkdir -p /matlab/toolboxes/vmh_revamped
26+
RUN mkdir -p /matlab/data
2627

2728
# Clone and initialize COBRA Toolbox with submodules
2829
RUN git clone --depth=1 https://github.com/opencobra/cobratoolbox.git /matlab/toolboxes/cobratoolbox && \
@@ -32,6 +33,9 @@ RUN git clone --depth=1 https://github.com/opencobra/cobratoolbox.git /matlab/to
3233
# Create MATLAB user directories to prevent startup errors
3334
RUN mkdir -p /root/Documents/MATLAB
3435

36+
# Make /matlab directory writable for MATLAB operations
37+
RUN chmod -R 777 /matlab
38+
3539
WORKDIR /matlab/scripts
3640

3741
# Note: vmh_revamped should be accessible in build context

0 commit comments

Comments
 (0)