ci: install backend

This commit is contained in:
2024-11-19 21:30:52 +01:00
parent 18f013d54c
commit f05f84abd1

View File

@ -13,14 +13,11 @@ services:
alias: scylla
before_script:
# Install dependencies
- apt-get update && apt-get install -y python3-pip
- pip3 install -r requirements.txt
# Check if ScyllaDB is ready (retry until successful)
- pip install ./backend
- |
echo "Waiting for ScyllaDB to be ready..."
until python3 -c "import cassandra; cluster = cassandra.cluster.Cluster([f'{SCYLLA_HOST}:{SCYLLA_PORT}']); session = cluster.connect(); session.set_keyspace('${SCYLLA_KEYSPACE}');" 2>/dev/null; do
until python -c "import cassandra; cluster = cassandra.cluster.Cluster([f'{SCYLLA_HOST}:{SCYLLA_PORT}']); session = cluster.connect(); session.set_keyspace('${SCYLLA_KEYSPACE}');" 2>/dev/null; do
echo "ScyllaDB is not ready yet, retrying in 5 seconds..."
sleep 5
done