Fix conda remove defaults error and added landing page to idear_processor_networked

This commit is contained in:
2025-10-30 19:34:40 +01:00
parent 9d4878a2df
commit 6d77e09413
2 changed files with 14 additions and 5 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Add this after WORKDIR /idear and before the conda install
RUN conda config --remove channels defaults && \
conda config --add channels conda-forge && \
RUN conda config --add channels conda-forge && \
conda config --set channel_priority strict
# Use mamba if available for faster installation
+13 -3
View File
@@ -14,9 +14,19 @@ services:
#- ./scripts:/idear/scripts
- network_mount:/mnt/network_mount:rw
command: >
bash -c "
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='${JUPYTER_TOKEN:-my-token}'
"
bash -c '
if [ -f WELCOME.ipynb ]; then
DEFAULT_URL="/lab/workspaces/default?tree=WELCOME.ipynb"
echo "✅ WELCOME.ipynb found - setting as landing page"
jupyter trust WELCOME.ipynb
else
DEFAULT_URL=""
echo "⚠️ WELCOME.ipynb not found - using default homepage"
fi &&
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root \
--NotebookApp.token="${JUPYTER_TOKEN:-my-token}" --LabApp.default_url="$DEFAULT_URL" \
--ExtensionApp.default_url="$DEFAULT_URL"
'
profiles:
- networked