File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Get the name of the repo
4+ export MY_REPO=$( ls -d " /home/onyxia/work" /* / | head -n 1 | xargs basename)
5+
6+ # Restore the environment
7+ sh $MY_REPO /sspcloud/restore_environment.sh
8+
9+ # Download data
10+ sh $MY_REPO /sspcloud/download_data.sh
11+
12+
13+
314WORK_DIR=" /home/onyxia/work"
415GITHUB_REPOSITORY=" https://github.com/InseeFrLab/AIML4OS-template-quarto-python.git"
516NOTEBOOK_DOWNLOAD_URL=" https://inseefrlab.github.io/AIML4OS-template-quarto-python/chapters/chapter1.ipynb"
617BUCKET_PATH=" s3/donnees-insee/diffusion/ETAT_CIVIL/2020/DECES_COM_1019.csv"
718DEST_DIR=" $HOME /work/data"
819DEST_FILE=" $DEST_DIR /$( basename " $BUCKET_PATH " ) "
920
10-
11- # Download the pyproject.toml directly using git
12- echo $GITHUB_REPOSITORY
13- git clone --depth 1 $GITHUB_REPOSITORY temp
14-
15- # Install dependencies in system env
16- uv pip install -r temp/pyproject.toml --system
17- rm -rf temp
18-
1921# Download the dataset
2022echo " Downloading $BUCKET_PATH to $DEST_FILE ..."
2123mc cp " $BUCKET_PATH " " $DEST_DIR "
You can’t perform that action at this time.
0 commit comments