This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================ | |
| # RunPod Setup: Miniconda + Poetry | |
| # Image: runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04 | |
| # | |
| # Container start command (outer): | |
| # bash -c 'curl -fsSL https://gist.githubusercontent.com/YOUR_GIST/run_pod_setup.sh | bash && /start.sh' | |
| # ============================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cd into directory after running conda init | |
| cd /workspace | |
| # Define the Personal Access Token and repo name | |
| pat="$GITHUB_PAT" | |
| repo_name="$GITHUB_REPO" | |
| username="praful932" | |
| repo_url="https://github.com/Praful932/${repo_name}.git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # export GITHUB_PAT= | |
| # bash clone_git_repo.sh praful932 repo GITHUB_PAT . | |
| # curl -s https://gist.githubusercontent.com/Praful932/1a663cb14c6d56aaf5e7ee6daefa1e8b/raw | bash -s -- praful932 my-repo GITHUB_PAT /path/to/destination | |
| # Check if sufficient arguments are provided | |
| if [ "$#" -ne 4 ]; then | |
| echo "Usage: $0 <username> <repository-name> <env-var-name-for-pat> <destination-path>" | |
| exit 1 | |
| fi |
OlderNewer