-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'infra/cassandra-upgrade-26' into 'master'
(infra): updating local Cassandra to 4.0.7 minds/infrastructure/infrastructure#26 See merge request minds/minds!210
- Loading branch information
Showing
7 changed files
with
1,464 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM cassandra:4.0.7 | ||
|
||
COPY cassandra.yaml /etc/cassandra/cassandra.yaml |
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 @@ | ||
FROM cassandra:4.0.7 | ||
|
||
WORKDIR /opt | ||
COPY wait-for-cassandra.sh /opt/ | ||
|
||
ENTRYPOINT ["sh", "./wait-for-cassandra.sh"] |
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,13 @@ | ||
#!/bin/bash | ||
|
||
# Exit script wit ERRORLEVEL if any command fails | ||
set -e | ||
|
||
echo "Waiting for Cassandra to come online..." | ||
until cqlsh cassandra -e "show version" | ||
do | ||
echo "Ping..." | ||
sleep 1 | ||
done | ||
|
||
echo "Cassandra is up and running" |
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,12 @@ | ||
const Listr = require('listr'); | ||
const doco = require('../lib/doco'); | ||
|
||
module.exports = { | ||
title: 'Start Cassandra', | ||
task: () => new Listr([ | ||
{ | ||
title: 'Waiting for Cassandra', | ||
task: () => doco('run', 'wait-for-cassandra') | ||
}, | ||
]) | ||
}; |