forked from TeamUltroid/Ultroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Amit Sharma <[email protected]> Co-Authored-By: MMETMA <[email protected]> Co-Authored-By: Aditya <[email protected]> Co-Authored-By: marat2509 <[email protected]> Co-Authored-By: smartman_ru <[email protected]> Co-Authored-By: Flasho <[email protected]> Co-Authored-By: ÁÑÑÍHÌLÅTØR SPÄRK <[email protected]>
- Loading branch information
1 parent
d408591
commit 4d30dd7
Showing
41 changed files
with
1,062 additions
and
1,153 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
REPO="https://github.com/TeamUltroid/Ultroid.git" | ||
DIR="/root/TeamUltroid" | ||
|
||
spinner(){ | ||
local pid=$! | ||
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; | ||
do | ||
for i in "Ooooo" "oOooo" "ooOoo" "oooOo" "ooooO" "oooOo" "ooOoo" "oOooo" "Ooooo" | ||
do | ||
echo -ne "\r• $i" | ||
sleep 0.2 | ||
done | ||
done | ||
} | ||
|
||
clone_repo(){ | ||
if [ ! $BRANCH ] | ||
then export BRANCH="main" | ||
fi | ||
echo -e "\n\nCloning Ultroid ${BRANCH}... " | ||
git clone -b $BRANCH $REPO $DIR | ||
} | ||
|
||
install_requirements(){ | ||
echo -e "\n\nInstalling requirements... " | ||
pip3 install -q --no-cache-dir -r $DIR/requirements.txt && pip3 install av -q --no-binary av | ||
} | ||
|
||
railways_dep(){ | ||
if [ ! $RAILWAY_STATIC_URL ] | ||
then | ||
echo -e "\n\nInstalling YouTube dependency... " | ||
pip3 install -q --no-cache-dir yt-dlp | ||
fi | ||
} | ||
|
||
install_okteto_cli(){ | ||
if [ $OKTETO_TOKEN ] | ||
then | ||
echo -e "\n\nInstalling Okteto-CLI... " | ||
curl https://get.okteto.com -sSfL | sh | ||
fi | ||
} | ||
|
||
main(){ | ||
(clone_repo) & spinner | ||
(install_requirements) & spinner | ||
(railways_dep) & spinner | ||
(install_okteto_cli) & spinner | ||
} | ||
|
||
main |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
icon: https://raw.githubusercontent.com/TeamUltroid/Ultroid/main/resources/extras/logo_readme.jpg | ||
deploy: | ||
- okteto stack deploy --build -f docker-compose.yml |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.