docker compose setup (#162)

Co-authored-by: Kerem Yilmaz <kerem@skyvern.com>
This commit is contained in:
LawyZheng
2024-04-11 08:54:27 +08:00
committed by GitHub
parent 8c12e2bc20
commit c0b4510ba8
9 changed files with 211 additions and 0 deletions

20
entrypoint-skyvern.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
# check alembic
alembic upgrade head
alembic check
if [ ! -f ".streamlit/secrets.toml" ]; then
echo "Creating organization and API token..."
org_output=$(python scripts/create_organization.py Skyvern-Open-Source)
api_token=$(echo "$org_output" | awk '/token=/{gsub(/.*token='\''|'\''.*/, ""); print}')
# Update the secrets-open-source.toml file
echo -e "[skyvern]\nconfigs = [\n {\"env\" = \"local\", \"host\" = \"http://skyvern:8000/api/v1\", \"orgs\" = [{name=\"Skyvern\", cred=\"$api_token\"}]}\n]" > .streamlit/secrets.toml
echo ".streamlit/secrets.toml file updated with organization details."
fi
# Run the command and pass in all three arguments
xvfb-run python -m skyvern.forge