Skip to content

Commit

Permalink
add vastai boostrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
truonghm committed Sep 12, 2023
1 parent db2d2c9 commit 082d649
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ tree:
env:
source $(CONDA_HOME_PATH)/bin/activate; conda create -p $(CONDA_ENV_PATH) --no-default-packages --no-deps python=3.10 -y; conda env update -p $(CONDA_ENV_PATH) --file environment.yml

bootstrap:
./scripts/vastai_bootstrap.sh
## Remove old conda env and create a new one
env-reset:
rm -rf $(CONDA_ENV_PATH)
Expand Down
15 changes: 15 additions & 0 deletions scripts/vastai_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# install poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/main/install-poetry.py | python3

poetry --version
# add poetry to PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

# create environment
make env

conda activate .conda/m1

poetry install --no-root

0 comments on commit 082d649

Please sign in to comment.