mirror of
https://github.com/bec-project/bec_atlas.git
synced 2025-07-13 22:51:49 +02:00
ci: install backend
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user