Template
Fix conda remove defaults error and added landing page to idear_processor_networked
This commit is contained in:
+1
-2
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user