Skip to content

Commit e0f4960

Browse files
committed
Cassandra attempt
1 parent 8193312 commit e0f4960

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ jobs:
3535
cassandra:
3636
image: cassandra:4.0
3737
env:
38-
CASSANDRA_USER: admin
39-
CASSANDRA_PASSWORD: password
38+
CASSANDRA_USER: cassandra
39+
CASSANDRA_PASSWORD: cassandra
4040
ports:
4141
- "9042:9042"
42-
# Health check to wait until Cassandra is ready
4342
options: >-
44-
--health-cmd="cqlsh localhost 9042 --execute='describe keyspaces'"
43+
--health-cmd="cqlsh -u cassandra -p cassandra 127.0.0.1 9042 --execute='describe keyspaces'"
4544
--health-interval=10s
4645
--health-timeout=5s
4746
--health-retries=10
@@ -118,13 +117,13 @@ jobs:
118117
- name: Create Cassandra keyspace
119118
run: |
120119
# Wait for Cassandra to be ready
121-
until cqlsh -u cassandra -p cassandra localhost 9042 --execute='describe keyspaces' > /dev/null 2>&1; do
120+
until cqlsh -u cassandra -p cassandra 127.0.0.1 9042 --execute='describe keyspaces' > /dev/null 2>&1; do
122121
echo "Waiting for Cassandra to be ready..."
123122
sleep 5
124123
done
125124
126125
echo "Creating Cassandra keyspace..."
127-
cqlsh -u cassandra -p cassandra localhost 9042 --execute="CREATE KEYSPACE IF NOT EXISTS perfkit_db_ci WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};"
126+
cqlsh -u cassandra -p cassandra 127.0.0.1 9042 --execute="CREATE KEYSPACE IF NOT EXISTS perfkit_db_ci WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};"
128127
129128
- name: Create vector extension
130129
run: PGPASSWORD=password psql -h localhost -U root -d perfkit_pg_vector_db_ci -c "CREATE EXTENSION vector;"

0 commit comments

Comments
 (0)