generated from jupyterlite/demo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeploy.sh
28 lines (20 loc) · 877 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Install wget
yum install wget -y
# Download and extract Micromamba
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
# Export environment variables directly instead of using .bashrc
export PATH="$PWD/bin:$PATH"
export MAMBA_ROOT_PREFIX="$PWD/micromamba"
# Initialize Micromamba without modifying any shell profile files
./bin/micromamba shell init -s bash --no-modify-profile -p $MAMBA_ROOT_PREFIX
# Source Micromamba environment directly
eval "$(./bin/micromamba shell hook -s bash)"
# Activate the Micromamba environment
micromamba create -n jupyterenv python=3.11 -c conda-forge -y
micromamba activate jupyterenv
# Install the dependencies from requirements.txt
python -m pip install -r requirements.txt
# Build the JupyterLite site
jupyter lite --version
jupyter lite build --contents content --output-dir dist